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
panic in utp ackSyn() #425
Comments
It's recommend to use https://github.com/anacrolix/go-libutp instead. Could you change to that implementation? |
Thanks for your reply, I will have a try |
@luodw do you have an update? Did you switch to go-libutp? You can open a PR against anacrolix/utp if you have found a workaround. |
@anacrolix I use go-libutp and fix the issue. |
hello, our p2p is based on anacrolix/torrent. In recent days, our p2p restart accidentally. see the log,we found panic in https://github.com/anacrolix/utp/blob/master/socket.go#L493
.
I found incoming and outgoing conn will both add to socket.conns(map[connKey]*Conn, when accept a incoming conn, it will add to socket.conns,if socket.conns already has the same conn, it will panic. is there must be panic?or is there something wrong?
ps: we use both tcp and utp
The text was updated successfully, but these errors were encountered: