-
Notifications
You must be signed in to change notification settings - Fork 117
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
udp associate port and address have the problem #2
Comments
func (r *Reply) WriteTo(w io.Writer) (int64, error) { |
What is the 'problem'? |
you write associate ack data in three time, client will read loss data |
func (r *Reply) WriteTo(w io.Writer) (int64, error) { |
this is change function |
TCP is a stream protocol, so write([0x01]), write([0x02]) is same with write([0x01, 0x02]) |
but the result is not that on my pc and if you socket set so_nodelay flag the result is separate |
Can you show some related read/write code?
…On Mon, May 25, 2020 at 6:25 PM grayscot ***@***.***> wrote:
but the result is not that on my pc and if you socket set so_nodelay flag
the result is separate
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJPFT44GED25PA4BF2T54LRTJBRRANCNFSM4NGRMSVQ>
.
|
Any why dont you use
https://github.com/txthinking/socks5/blob/master/client_side.go#L163 ?
…On Mon, May 25, 2020 at 6:40 PM Cloud ***@***.***> wrote:
Can you show some related read/write code?
On Mon, May 25, 2020 at 6:25 PM grayscot ***@***.***> wrote:
> but the result is not that on my pc and if you socket set so_nodelay flag
> the result is separate
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <#2 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAJPFT44GED25PA4BF2T54LRTJBRRANCNFSM4NGRMSVQ>
> .
>
|
1. How to set so_nodelay true or fase?
2. What does the 'package is separate three slice' mean?
…On Mon, May 25, 2020 at 7:08 PM grayscot ***@***.***> wrote:
just use your code,but have problem with udp associate response, the
package is separate three slice
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAJPFT2J7RBNI7MY2XDVIQ3RTJGTTANCNFSM4NGRMSVQ>
.
|
so that you three times to write socket will send three packages in network |
could you give me privilege to push the code, there has two to fault with udp proxy |
Can you copy this code and run, then paste the output:
Here is output I got:
|
Yes you and anyone can send PR, don't need my authorization |
ok |
This is minimal tcp read write, about your question |
but your read is block read full two bytes |
Yes, this is what |
git.exe push --progress "origin" master:master |
I can't push my code |
my socks5 client is C++ code which will not block socket to read giving bytes |
I recommend use this go socks5 lib to build client. Build and Use Go Packages as C Libraries https://medium.com/swlh/build-and-use-go-packages-as-c-libraries-889eb0c19838 |
ok, 3Q |
I made a c client to connect to the above server,
Run multi times:
Every things is ok. so I closed this issue |
Describe actual behavior
What is your expected behavior
Specifications like the version of the project, operating system, or hardware
Steps to reproduce the problem
The text was updated successfully, but these errors were encountered: