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

Sam Liddicott sam at liddicott.com
Tue May 19 14:44:50 GMT 2009


* 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

Sam
-------------- next part --------------
An embedded message was scrubbed...
From: Sam Liddicott <sam at liddicott.com>
Subject: [PATCH] s4:smb_server: initialy read the first 4 bytes only
Date: Tue, 19 May 2009 15:42:39 +0100
Size: 2446
Url: http://lists.samba.org/archive/samba-technical/attachments/20090519/d1b2fe9d/AttachedMessage.eml


More information about the samba-technical mailing list