fanpei91 / torsniff

torsniff - a sniffer that sniffs torrents from BitTorrent network

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

kilves76 opened this issue · comments

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.

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

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

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

Can the author fix this bug?