pkgsrc-wip/gnunet/patches/patch-ad
Todd Vierling c7fe568889 Update to 0.6.4a; PKG_OPTIONS-ize the type of crypto used and the databases
available for the datastore.  It almost works now.

(On NetBSD 2.0, it runs for me, but has a lot of trouble trying to connect
to peers; it will open connections in nonblocking mode, but somehow not get
any responses to "sent" data. Methinks there are some nonblocking socket
no-no's in the code that just happen to work on Linux.)
2004-11-06 03:35:18 +00:00

14 lines
421 B
Text

$NetBSD: patch-ad,v 1.2 2004/11/06 03:35:19 tvierling Exp $
--- src/transports/tcp.c.orig 2004-11-05 16:00:42.000000000 -0500
+++ src/transports/tcp.c
@@ -807,7 +807,8 @@ static int tcpDirectSend(TCPSession * tc
}
if (ret < 0) {
if ( (errno == EAGAIN) ||
- (errno == EWOULDBLOCK)) {
+ (errno == EWOULDBLOCK) ||
+ (errno == ENOTCONN) ) {
ret = 0;
} else {
LOG_STRERROR(LOG_INFO, "send");