-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
asio_service support stream mode (#527)
* asio_service support stream mode 1. set TCP_NODELAY = true this can be set after the socket open. So we can't set it in constructor. (async_connect will open the socket) 2. does the order of calling all the when_done matter when error occur? in write path when_done(error triggered) -> close_socket(in destructor) in read path close_socket(directly call) -> when_done(error triggered) 3. keep the old path for all request if stream_mode_ = false already addressed all the comment. * handle comments * fix error * error handle * move all function call out of lock * [Refactoring] renaming, comments, indent --------- Co-authored-by: lihzeng <[email protected]> Co-authored-by: Jung-Sang Ahn <[email protected]>
- Loading branch information
1 parent
0a754e0
commit 680fbdf
Showing
6 changed files
with
517 additions
and
108 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
Oops, something went wrong.