Skip to content

Commit 8163660

Browse files
committed
Merge pull request #338 from nkzawa/patch-2
Call res.end() when polling error
2 parents 1b9254c + 8c018be commit 8163660

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/transports/polling.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ Polling.prototype.onPollRequest = function (req, res) {
7878
// assert: this.res, '.req and .res should be (un)set together'
7979
this.onError('overlap from client');
8080
res.writeHead(500);
81+
res.end();
8182
return;
8283
}
8384

@@ -121,6 +122,7 @@ Polling.prototype.onDataRequest = function (req, res) {
121122
// assert: this.dataRes, '.dataReq and .dataRes should be (un)set together'
122123
this.onError('data request overlap from client');
123124
res.writeHead(500);
125+
res.end();
124126
return;
125127
}
126128

0 commit comments

Comments
 (0)