On tcp proxy with http handler. #2584
-
I am writing a tcp proxy which could handle http packet with hyper . |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Could you explain more what you expect to happen? hyper tries to be an HTTP handler, so if you get a TCP connection that is not sending HTTP, it will reject with an error. What sorts of "custom method" or "error injected" are you expecting to use? |
Beta Was this translation helpful? Give feedback.
-
Thanks for your reply. The user of my tcp proxy used their custmomed HTTP method like such as |
Beta Was this translation helpful? Give feedback.
Thanks for your reply. The user of my tcp proxy used their custmomed HTTP method like such as
LOCK
andUNLOCK
... And we have tried to inject some HTTP error like close socket after send all body and some parse error on headers. These packet will be rejected with an error, but we want to proxy the error packet to target server to check if the server will panic or has some other problem.