Bug #2437

rtorrent crashes with large number of connections

Added by t_dfbsd almost 2 years ago. Updated 9 months ago.

Status:ClosedStart date:10/21/2012
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:-
Target version:-

Description

When I build libtorrent from pkgsrc with kqueue support, it crashes quickly if there are a large number of connections (doesn't happen with select polling). The error message is "PollKQueue::modify() error: Bad file descriptor". After some Googling, I found this FreeBSD patch which fixes the problem in my limited testing so far:

http://www.freebsd.org/cgi/cvsweb.cgi/ports/net-p2p/libtorrent/files/patch-src_torrent_poll__kqueue.cc

Can someone get this into pkgsrc for DF?

History

#1 Updated by sjg almost 2 years ago

  • Status changed from New to Feedback

The FreeBSD patch looks like a work-around, not a fix.

#2 Updated by t_dfbsd almost 2 years ago

I think you're right, but it's an improvement and I don't know what a real fix would be.

#3 Updated by t_dfbsd 9 months ago

  • Description updated (diff)
  • Status changed from Feedback to Closed

The dports version of rtorrent fixes this issue, so I'm closing this ticket.

#4 Updated by t_dfbsd 9 months ago

Sorry, I meant to say "dports version of libtorrent".

Also available in: Atom PDF