New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transferred 0 bytes is wrong #3
Comments
I believe the message is correct but perhaps the functionality could use adjustment. It's reporting the number of bytes written from the server ( The message that would have contained the number of bytes copied from the client to the server is not printed; in its place is a message reporting the error that resulted in the termination of the connection. In this case, we are perhaps being too technical with the definition of "error" here - the client is presumably just terminating the connection without going through the teardown protocol with a TCP FIN and whatnot. We probably should just ignore that error and treat it as a normal connection close. |
How did you end up in that state? When I do the same (but first nc, then tcp proxy, then nc), the foo is sent and then the "client"
|
Interesting. Yes, then it sounds like the logging output might be just confusing.
Not for me. Maybe the host OS makes a difference? |
Could be. Apple ships extremely outdated versions of most cli utilities for licensing reasons. (I'm on Linux.) I patched tcpproxy to ignore ECONNRESET and ECONNABORT in the read loop. Can you try again after installing tcpproxy from git?
|
I also tried a recent Recent master looks better 👍
|
Awesome, thanks for the confirmation and thanks for posting here and helping improve I'll publish an update to cargo soon, as there are a few other fixes I've pushed recently. |
Obviously 4 bytes got transferred - but it gets reported wrong:
The text was updated successfully, but these errors were encountered: