Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

support timeout event #425

Open
sanggyun opened this Issue · 2 comments

3 participants

@sanggyun

I want to catch event when reverseProxy is on timeout

maybe ...
in http-proxy.js

reverseProxy.once('socket', function (socket) {
  if (self.timeout) {
    socket.setTimeout(self.timeout, function(){
      self.emit('timeout', req, res)
    });
  }
});
@alum

+1 this would be super nice. Just automatically sending a 504 on timeout would be great.

@philjackson

This would be really nice, but you'd have to work out who is responsible for calling res.end() somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.