How to set listen queue size for deluged? (FreeBSD9.2)

General support for problems installing or using Deluge
Post Reply
hyperionx
New User
New User
Posts: 3
Joined: Wed Aug 27, 2014 11:12 pm

How to set listen queue size for deluged? (FreeBSD9.2)

Post by hyperionx »

Hello!

I have just installed deluge on my nas4free (freebsd 9.2) server and is having some issues.
Number one right now is this error message:

Code: Select all

sonewconn: pcb 0xfffffe000c32aab8: Listen queue overflow: 8 already in queue awaiting acceptance
There is a ton of them whenever I download a torrent and even happens here and there while seeding despite low activity.

So the problem should be that the listen queue for deluge is too small. Here's what netstat -aL looks like.

Code: Select all

Current listen queue sizes (qlen/incqlen/maxqlen)
Proto Listen         Local Address
tcp46 0/0/5          *.4433
tcp6  0/0/5          *.65000
tcp4  0/0/5          *.4433
tcp4  0/0/5          *.65000
tcp4  0/0/50         *.58846
I'm using port 65000 right now for deluge so im assuming its both incoming and outgoing which has a maxqlen of 5 (error message makes sense since freebsd allow 150% of maxqlen to be filled before discarding connections, 150% of 5 rounded up would be 8 connections.

The built in torrent client (transmission) have maxqlen 128 preset somehow and I'm wondering how I would go about doing that for deluge, if its even possible to change it?
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: How to set listen queue size for deluged? (FreeBSD9.2)

Post by Cas »

There is a libtorrent setting "listen_queue_size" so you can set that using the ltconfig plugin.
hyperionx
New User
New User
Posts: 3
Joined: Wed Aug 27, 2014 11:12 pm

Re: How to set listen queue size for deluged? (FreeBSD9.2)

Post by hyperionx »

Thanks for your response, that looked exactly like what I was looking for. However, it didnt change maxqlen for deluge. It's still at 5.
Didnt notice any problems installing/enabling/configuring the plugin either, logs are clean.

Anyone has any ideas? :)
Cas
Top Bloke
Top Bloke
Posts: 3681
Joined: Mon Dec 07, 2009 6:04 am
Location: Scotland

Re: How to set listen queue size for deluged? (FreeBSD9.2)

Post by Cas »

It works fine here, did you 'apply settings on startup' and restart deluge, it won't apply until then.
Post Reply