-
Notifications
You must be signed in to change notification settings - Fork 74
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
feature request: ability to track of bytes send and received #20
Comments
Hey there, From running the server example by using I do get the right amount of bytes transferred as mentioned from the logs:
An improvement we could bring, would be to have to Line 643 in f711ae0
|
Yes that would be one step in the right direction. Even though it will need to bubble up. A related problem though is that |
Going to close this one as the other work already contributed by me in combination with the root cause of #23 are the reasons why we do not always receive it. Trying to track it from within this crate wouldn't resolve it or even work due to the issues causing it. Closing this as such. |
In regards to #15. I managed to make that all work.
However, and please check the code linked there, I had to make it catch
ErroKind (NotConnected/ConnectionReset).
This essentially does mean that we do have access to the bytes send/received (written/read).
However even when no error that number does always seem to be (0,0) (used as a router, but even when running a regular server as per your example).
I tried to write copy directional myself (copying the code and catching the error):
However this still has the same issue, that is, the returned data read/written is (0,0).
It is not as simple as that:
From the logs we can see that the size is returned for the initial part of the socks5 stream (header),
but once we do the actual transfer we seem to log nothing.
What am I doing wrong here? both in my fork and vanilla code.
I really need for my purposes to be able to log the payload size.
The text was updated successfully, but these errors were encountered: