Skip to content

Commit 5072101

Browse files
committed
Remove 2 sec delay (not sure why it suddenly worked)
1 parent ebc4fc6 commit 5072101

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ socket.on('data', (data) => {
9595

9696
### TODO
9797

98+
host name verification on tls upgrade not implemented on android
9899
add select tests from node's tests for net
99100

100101
## Contributors

TcpSocket.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,6 @@ TcpSocket.prototype._upgradeToSecure = function(callback) {
477477
this._upgrading = true;
478478
Sockets.upgradeToSecure(this._id, host, port, () => {
479479
// emit all cached requests
480-
// TODO : get rid of slow timeout - just removing it trips SSLException in the engine
481480
setTimeout(() => {
482481
while (this._upgradeCache.length) {
483482
const cacheElement = this._upgradeCache.shift()
@@ -499,7 +498,7 @@ TcpSocket.prototype._upgradeToSecure = function(callback) {
499498
}
500499
this._upgrading = false;
501500
callback();
502-
}, 2000);
501+
});
503502
});
504503
return this;
505504
}

0 commit comments

Comments
 (0)