Skip to content


support timeout event #425

sanggyun opened this Issue · 3 comments

4 participants


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)

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


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

nodejitsu member

This is from the old version of http-proxy, please open up a new issue if you run into an issue with the new version! Thanks.

@jcrugzz jcrugzz closed this
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.