forked from opendreambox/samba
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unix_msg: introduce send queue caching
This introduces caching of unix datagram send queues. Right now send queues are only created for peers if the channel to the peer is full and a send reported EWOULDBLOCK. At this stage, performance will actually be slightly worse, because now if there's a cached queue for a peer without queued messages, we don't attempt direct send anymore until the send queue is removed from the cache. The next commit will modify unix_msg to always create a send queue with the datagram socket in connected mode and again attempt an non-blocking send on the connected socket first. Then only if that returns EWOULDBLOCK, the send has to go through the threadpool. Signed-off-by: Ralph Boehme <[email protected]> Reviewed-by: Jeremy Allison <[email protected]>
- Loading branch information
1 parent
bb526a6
commit 16d0766
Showing
3 changed files
with
67 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters