Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 2 contributors
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/server.js
7 lib/server.js
View
@@ -46,6 +46,9 @@ var SPDYProxy = function(options) {
// write out headers to handle redirects
res.writeHead(rres.statusCode, '', rres.headers);
rres.pipe(res);
+
+ // Res could not write, but it could close connection
+ res.pipe(rres);
});
rreq.on('error', function(e) {
@@ -55,6 +58,10 @@ var SPDYProxy = function(options) {
});
req.pipe(rreq);
+
+ // Just in case if socket will be shutdown before http.request will connect
+ // to the server.
+ res.pipe(rreq);
}
function handleSecure(req, socket) {

No commit comments for this range

Something went wrong with that request. Please try again.