Enable "bad libc workaround", otherwise I/O would be done one byte at a time.

From: Victor Sahlstedt <salan@legonet.org>
This commit is contained in:
naddy 2005-04-21 22:17:02 +00:00
parent 357f6e3acb
commit 30f17e1d39
2 changed files with 14 additions and 1 deletions

View File

@ -1,7 +1,8 @@
# $OpenBSD: Makefile,v 1.6 2005/04/16 21:13:02 sturm Exp $ # $OpenBSD: Makefile,v 1.7 2005/04/21 22:17:02 naddy Exp $
COMMENT= "cooperative file distribution system implemented in Python" COMMENT= "cooperative file distribution system implemented in Python"
DISTNAME= BitTorrent-4.0.1 DISTNAME= BitTorrent-4.0.1
PKGNAME= BitTorrent-4.0.1p1
CATEGORIES= net CATEGORIES= net
MASTER_SITES= ${HOMEPAGE}dl/ MASTER_SITES= ${HOMEPAGE}dl/

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-BitTorrent_defaultargs_py,v 1.1 2005/04/21 22:17:03 naddy Exp $
--- BitTorrent/defaultargs.py.orig Wed Apr 20 22:50:18 2005
+++ BitTorrent/defaultargs.py Wed Apr 20 22:50:26 2005
@@ -77,7 +77,7 @@ rare_options = [
'if nonzero, set the TOS option for peer connections to this value'),
('filesystem_encoding', '',
"character encoding used on the local filesystem. If left empty, autodetected. Autodetection doesn't work under python versions older than 2.3"),
- ('enable_bad_libc_workaround', 0,
+ ('enable_bad_libc_workaround', 1,
'enable workaround for a bug in BSD libc that makes file reads very slow.'),
('tracker_proxy', '',
'address of HTTP proxy to use for tracker connections'),