forked from tediousjs/tedious
-
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.
Replace createSecurePair with TLSSocket + TCP server
This is stupid. Not how to properly replace createSecurePair. SecurePair fires ‘secure’ event synchronously. Using a couple of sockets instead of it means that the flow becomes more asynchronous. Therefore socket ‘end’ can not be used directly to control the Connection state, the data first needs to pass through the TCP server and TLSSocket.
- Loading branch information
Antti Risteli
committed
Dec 14, 2017
1 parent
e2152d4
commit 182e4e0
Showing
3 changed files
with
86 additions
and
37 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