Skip to content
This repository

Doesn't work as middleware if next() is called after a timeout #354

ghost opened this Issue December 24, 2012 · 0 comments

0 participants

Deleted user

The content you are editing has changed. Reload the page and try again.

I'm able to use the proxy just fine if previous middleware calls next() syncronously. But if I put it in a db callback, or just a simple setTimeout(), it stalls and never responds. I've confirmed that it's entering the middleware function made with httpProxy.createServer, but the proxy.proxyRequest doesn't ever come back. Any ideas?

Sending Request…

Attach images by dragging & dropping or selecting them. Octocat-spinner-32 Uploading your images… Unfortunately, we don't support that file type. Try again with a PNG, GIF, or JPG. Yowza, that's a big file. Try again with an image file smaller than 10MB. This browser doesn't support image attachments. We recommend updating to the latest Internet Explorer, Google Chrome, or Firefox. Something went really wrong, and we can't process that image. Try again.

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.