Bug #2437

rtorrent crashes with large number of connections

Added by t_dfbsd almost 4 years ago. Updated almost 3 years ago.

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


Target version:-


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:


Can someone get this into pkgsrc for DF?


#1 Updated by sjg almost 4 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 4 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 almost 3 years 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 almost 3 years ago

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

Also available in: Atom PDF