smb_server Re: FW: [PATCH] Stop packet_recv greediness, stop using event_add_timed

Stefan (metze) Metzmacher metze at samba.org
Wed May 20 08:34:16 GMT 2009


Sam Liddicott schrieb:
> * Stefan (metze) Metzmacher wrote, On 19/05/09 15:23:
>> Sam Liddicott schrieb:
>>   
>>> * Stefan (metze) Metzmacher wrote, On 19/05/09 14:02:
>>>     
>>>> I think the long term goal should be to use the tstream api
>>>> and drop the packet_*() api. The packet_*() api has far to many knobs
>>>> now and it's too complex. With the tstream it should be easy to
>>>> implement the read 4 => read rest logic, while it optimizes out the
>>>> epoll calls.
>>>>
>>>> I hope I'll have time to update the documentation from the tsocket api
>>>> to the much simpler tstream api.
>>>>
>>>> For now I'll just apply your patch.
>>>>   
>>>>       
>>> wow. Thanks Metze.
>>>     
>> BTW: would this patch also solve your problem?
>>   
> The attached patch would need to go with it, to do the same thing in
> smb_server

Pushed, thanks!

metze

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20090520/13c14b06/signature.bin


More information about the samba-technical mailing list