aboutsummaryrefslogtreecommitdiffstats
path: root/net-p2p
diff options
context:
space:
mode:
authorflz <flz@FreeBSD.org>2009-10-29 21:30:35 +0800
committerflz <flz@FreeBSD.org>2009-10-29 21:30:35 +0800
commit01255e844b179baf27655cc629d23338bae3678a (patch)
tree7932467db5e3f2a0770eb34ae24a3184e077fc55 /net-p2p
parentc3462d0bd7a7e33ba60ea6914fbdc223bd8492d1 (diff)
downloadfreebsd-ports-gnome-01255e844b179baf27655cc629d23338bae3678a.tar.gz
freebsd-ports-gnome-01255e844b179baf27655cc629d23338bae3678a.tar.zst
freebsd-ports-gnome-01255e844b179baf27655cc629d23338bae3678a.zip
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
Diffstat (limited to 'net-p2p')
-rw-r--r--net-p2p/libtorrent-devel/Makefile2
-rw-r--r--net-p2p/libtorrent-devel/files/patch-src_torrent_poll__kqueue.cc9
2 files changed, 10 insertions, 1 deletions
diff --git a/net-p2p/libtorrent-devel/Makefile b/net-p2p/libtorrent-devel/Makefile
index c6fd4deadffd..ad69976c66d3 100644
--- a/net-p2p/libtorrent-devel/Makefile
+++ b/net-p2p/libtorrent-devel/Makefile
@@ -7,7 +7,7 @@
PORTNAME= libtorrent-devel
PORTVERSION= 0.12.5
-PORTREVISION= 0
+PORTREVISION= 1
DISTNAME= ${PORTNAME:S/-devel//}-${PORTVERSION}
MAINTAINER= flz@FreeBSD.org
diff --git a/net-p2p/libtorrent-devel/files/patch-src_torrent_poll__kqueue.cc b/net-p2p/libtorrent-devel/files/patch-src_torrent_poll__kqueue.cc
index e1de953422ff..d0d718b680c4 100644
--- a/net-p2p/libtorrent-devel/files/patch-src_torrent_poll__kqueue.cc
+++ b/net-p2p/libtorrent-devel/files/patch-src_torrent_poll__kqueue.cc
@@ -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) :