Getting debug information in production #505

Open
srossross opened this Issue Oct 24, 2013 · 0 comments

Projects

None yet

1 participant

@srossross
Contributor

I am using some custom and complex proxy logic on the caronte branch. For http requests, among other things, I add a header X-Proxy-Rejected: reason if for some reason I can not find a suitable endpoint to the users request.

I have found this very useful to debug small issues and gain a quick understanding of what is going on for a user.

Is it possible to do something like this for web sockets since we do not have a response object? Also, on an error I end up calling just socket.end() otherwise the websocket on the client side just hangs, is that a correct way to handle this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment