mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
hack for ending https connections
This commit is contained in:
1 parent
94f8368cf9
commit
73f4ec51fd
1 file changed
+10
-4
+10
-4
@@ -833,11 +833,17 @@ function connectionListener(socket) {
|
||||
if (message._last) {
|
||||
// No more messages to be pushed out.
|
||||
|
||||
// HACK: need way to do this with socket interface
|
||||
if (socket._writeQueue.length) {
|
||||
socket.__destroyOnDrain = true; //socket.end();
|
||||
if (!socket._writeQueue) {
|
||||
// Putting this here for https. Really need to add below hack to
|
||||
// both socket and https interfaces.
|
||||
socket.end();
|
||||
} else {
|
||||
socket.destroy();
|
||||
// HACK: need way to do this with socket interface
|
||||
if (socket._writeQueue.length) {
|
||||
socket.__destroyOnDrain = true; //socket.end();
|
||||
} else {
|
||||
socket.destroy();
|
||||
}
|
||||
}
|
||||
|
||||
} else if (socket._outgoing.length) {
|
||||
|
||||
Reference in new issue
Block a user