Add a patch to fix crash when total number of connections exceeds 1024.

Submitted by:	Andrew Stadtler, Paul Belanger
Obtained from:	http://libtorrent.rakshasa.no/ticket/1581
This commit is contained in:
Florent Thoumie 2009-10-29 13:30:35 +00:00
parent 80d89d86ca
commit e4d9946f25
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=243466
2 changed files with 10 additions and 1 deletions

View File

@ -7,7 +7,7 @@
PORTNAME= libtorrent-devel
PORTVERSION= 0.12.5
PORTREVISION= 0
PORTREVISION= 1
DISTNAME= ${PORTNAME:S/-devel//}-${PORTVERSION}
MAINTAINER= flz@FreeBSD.org

View File

@ -9,3 +9,12 @@
#endif
namespace torrent {
@@ -113,7 +113,7 @@
if (fd == -1)
return NULL;
- return new PollKQueue(fd, 1024, maxOpenSockets);
+ return new PollKQueue(fd, 16384, maxOpenSockets);
}
PollKQueue::PollKQueue(int fd, int maxEvents, int maxOpenSockets) :