View previous topic :: View next topic |
Author |
Message |
Oak Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/8997044054213d93379436.gif)
Joined: 25 Jan 2005 Posts: 239 Location: Sweden
|
Posted: Fri Aug 07, 2009 2:27 pm Post subject: Network error messages (unexpectedly shrunk window) |
|
|
Hi guys.
Recently I've been having network problems while rtorrent is running, which I think has something to do with my firewall setup.
When rtorrent is running I randomly gets error messages (dmesg) that says:
Code: |
TCP: Peer xxx:xxx:xxx:xxx:49917/9882 unexpectedly shrunk window 2225422736:2225424539 (repaired)
|
This immediately kills my connection for a couple of minutes.
It only happens when rtorrent is running. rtorrent is set to use ports 9881-9882 for inbound connections, and my shorewall rule for this is
Code: |
ACCEPT all $FW tcp 9881
ACCEPT all $FW udp 9881
ACCEPT all $FW tcp 9882
ACCEPT all $FW udp 9882
|
I think that my ISP treats this as a problem/bug from bad packets, which probably is the reason why my connection dies.
Any suggestions on what to do or try to fix this? _________________ GCC-4.3.3-r1 - march=core2, gentoo-sources-2.6.30-r2 SMP x86_64 @ Core2Duo 2.4GHz, 4GB RAM |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
papahuhn l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Sylvester.gif)
Joined: 06 Sep 2004 Posts: 626
|
Posted: Sat Aug 08, 2009 9:35 am Post subject: |
|
|
It's not a problem with your ISP or your firewall rules. The other peer set the advertised window size to zero, meaning that it cannot or does not want to receive any more data by you. Perhaps the remote peer was overloaded or maybe the remote torrent-client has been set to pause (not stop) but did not close it's associated TCP connections. _________________ Death by snoo-snoo! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Oak Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/8997044054213d93379436.gif)
Joined: 25 Jan 2005 Posts: 239 Location: Sweden
|
Posted: Sun Aug 09, 2009 3:55 pm Post subject: |
|
|
Ok, I guess that rtorrent is the one to blame then.
Thanks! _________________ GCC-4.3.3-r1 - march=core2, gentoo-sources-2.6.30-r2 SMP x86_64 @ Core2Duo 2.4GHz, 4GB RAM |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
papahuhn l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Sylvester.gif)
Joined: 06 Sep 2004 Posts: 626
|
Posted: Sun Aug 09, 2009 5:56 pm Post subject: |
|
|
Oak wrote: | Ok, I guess that rtorrent is the one to blame then. |
No, not your torrent client, but the remote peer. _________________ Death by snoo-snoo! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Oak Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/8997044054213d93379436.gif)
Joined: 25 Jan 2005 Posts: 239 Location: Sweden
|
Posted: Sun Aug 09, 2009 7:33 pm Post subject: |
|
|
Hmm, so one solution would be to block those peers? _________________ GCC-4.3.3-r1 - march=core2, gentoo-sources-2.6.30-r2 SMP x86_64 @ Core2Duo 2.4GHz, 4GB RAM |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
papahuhn l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/gallery/Loony Toons/Looney_Toons_-_Sylvester.gif)
Joined: 06 Sep 2004 Posts: 626
|
Posted: Tue Aug 11, 2009 6:24 pm Post subject: |
|
|
I would ignore the messages. _________________ Death by snoo-snoo! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Oak Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/8997044054213d93379436.gif)
Joined: 25 Jan 2005 Posts: 239 Location: Sweden
|
Posted: Tue Aug 11, 2009 11:36 pm Post subject: |
|
|
Since my connection problems only occur when rtorrent is running, I think that it's safe to assume that rtorrent is causing them.
However, I can't be sure that the problems actually has anything to do with the error messages, since they might be independent of each other.
I just switched to ktorrent, which doesn't cause any connection problems and doesn't produce any error messages.
Thanks! _________________ GCC-4.3.3-r1 - march=core2, gentoo-sources-2.6.30-r2 SMP x86_64 @ Core2Duo 2.4GHz, 4GB RAM |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Bircoph Retired Dev
![Retired Dev Retired Dev](/images/ranks/rank-retired.gif)
![](images/avatars/7686689334ce5a8bf62538.jpg)
Joined: 27 Jun 2008 Posts: 261 Location: Moscow
|
Posted: Thu Aug 13, 2009 4:49 pm Post subject: |
|
|
If you need to use good console torrent, try enhanced ctorrent.
I have no problems with it for several years, also this application is easy to chroot, thus you can greatly enhance its security. _________________ Per aspera ad astra! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Oak Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/8997044054213d93379436.gif)
Joined: 25 Jan 2005 Posts: 239 Location: Sweden
|
Posted: Fri Aug 14, 2009 3:40 pm Post subject: |
|
|
Bircoph wrote: | If you need to use good console torrent, try enhanced ctorrent.
I have no problems with it for several years, also this application is easy to chroot, thus you can greatly enhance its security. |
Unfortunately, the trackers I use only allows a given set of clients. ctorrent isn't one of them.
Thanks anyway. _________________ GCC-4.3.3-r1 - march=core2, gentoo-sources-2.6.30-r2 SMP x86_64 @ Core2Duo 2.4GHz, 4GB RAM |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|