Skip to content
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

Windows 10 torsniff v0.1.0 Error: read udp <port> wsarecvfrom: socket larger than buffer or keep-alive activity #88

Open
kilves76 opened this issue Jan 11, 2021 · 3 comments

Comments

@kilves76
Copy link

Windows 10 x64 with latest updates throws this, program has full in/out rights in firewall, port is forwarded on router:

Port 60881 immediate termination:

C:\torsniff>.\torsniff-v0.1.0-windows-amd64.exe -d "C:\torsniff\torrentfiles" -f 90 -e 90 -p 60881 -t 120s -v
running, it may take a few minutes...
Error: read udp [::]:60881: wsarecvfrom: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.
could not start: read udp [::]:60881: wsarecvfrom: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.

Port 9881 same:

could not start: read udp [::]:9881: wsarecvfrom: The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress.

Port 5881 runs for less than a minute, network traffic is visible, no torrent files collected:

could not start: read udp [::]:5881: wsarecvfrom: The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress.

Port 4881 immediate termination:

could not start: read udp [::]:4881: wsarecvfrom: A message sent on a datagram socket was larger than the internal message buffer or some other network limit, or the buffer used to receive a datagram into was smaller than the datagram itself.

Port 3881 immediate termination:

could not start: read udp [::]:3881: wsarecvfrom: The connection has been broken due to keep-alive activity detecting a failure while the operation was in progress.

I'm unable to say why port 5881 would run but the others don't. Netstat -an shows less than 50 ports being used in all states, all of the above ports tried are free on both computer and router.

@Schr0dingerCat
Copy link

无法启动running, it may take a few minutes

自己的是公网ip,也开了6881的端口映射,
但是在nas上开了好几天了,一个种子没爬到
一直显示上面的东西

@KugelblitzNinja
Copy link

I dont know why on line 190 in dht.go is set to use 2048 byes as its buffer but if you increases that to 65536 you no longer that that issues on windows.

@kilves76

@648480505
Copy link

Can the author fix this bug?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants