-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send TCP packets on separate thread (#7226)
* queue TCP send packets and send on their own thread to prevent garbling * if partial TCP packet was sent, keep sending the rest of the packet until complete or failure * make tcp send queue per-socket, add blocking enqueue impl * update queue test * move context->destroying = true to outside of semaphore condition * clang-format * remove extraneous queue_item * update queue semaphore comments * change queue to use condvar for blocking enqueue and have different function for timeout/blocking * get rid of busy loop when socket connection is lost * clang-format * add const qualifier in enqueue_item * remove semaphore remnants, add cond changes, change signature * update queue docs * remove test.c oops
1 parent
465b81c
commit 7836cfc
Showing
5 changed files
with
223 additions
and
44 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
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