-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Preserve caller context in TcpAcceptor (#1087)
Before this fix, acceptOne() was losing FTP DATA TcpAcceptor context by unconditionally resetting the context to a nil listenPort_. Also, TcpAcceptor methods should not (be expected to) explicitly set their job code context. Instead, the job should be created in the right code context, allowing job-created async calls to auto-manage code context. The updated port-iterating clientHttpConnectionsOpen() and Ftp::StartListening() loops now set the right code context when creating async calls that result in TcpAcceptor job creation.
- Loading branch information
1 parent
d448e1e
commit f38db63
Showing
3 changed files
with
29 additions
and
19 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