Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Network error messages (unexpectedly shrunk window)
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Oak
Apprentice
Apprentice


Joined: 25 Jan 2005
Posts: 239
Location: Sweden

PostPosted: Fri Aug 07, 2009 2:27 pm    Post subject: Network error messages (unexpectedly shrunk window) Reply with quote

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
View user's profile Send private message
papahuhn
l33t
l33t


Joined: 06 Sep 2004
Posts: 626

PostPosted: Sat Aug 08, 2009 9:35 am    Post subject: Reply with quote

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
View user's profile Send private message
Oak
Apprentice
Apprentice


Joined: 25 Jan 2005
Posts: 239
Location: Sweden

PostPosted: Sun Aug 09, 2009 3:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
papahuhn
l33t
l33t


Joined: 06 Sep 2004
Posts: 626

PostPosted: Sun Aug 09, 2009 5:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
Oak
Apprentice
Apprentice


Joined: 25 Jan 2005
Posts: 239
Location: Sweden

PostPosted: Sun Aug 09, 2009 7:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
papahuhn
l33t
l33t


Joined: 06 Sep 2004
Posts: 626

PostPosted: Tue Aug 11, 2009 6:24 pm    Post subject: Reply with quote

I would ignore the messages.
_________________
Death by snoo-snoo!
Back to top
View user's profile Send private message
Oak
Apprentice
Apprentice


Joined: 25 Jan 2005
Posts: 239
Location: Sweden

PostPosted: Tue Aug 11, 2009 11:36 pm    Post subject: Reply with quote

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
View user's profile Send private message
Bircoph
Retired Dev
Retired Dev


Joined: 27 Jun 2008
Posts: 261
Location: Moscow

PostPosted: Thu Aug 13, 2009 4:49 pm    Post subject: Reply with quote

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
View user's profile Send private message
Oak
Apprentice
Apprentice


Joined: 25 Jan 2005
Posts: 239
Location: Sweden

PostPosted: Fri Aug 14, 2009 3:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum