[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r14397 - in libmicrohttpd: . src/daemon
From: |
gnunet |
Subject: |
[GNUnet-SVN] r14397 - in libmicrohttpd: . src/daemon |
Date: |
Sun, 13 Feb 2011 10:53:44 +0100 |
Author: grothoff
Date: 2011-02-13 10:53:44 +0100 (Sun, 13 Feb 2011)
New Revision: 14397
Modified:
libmicrohttpd/ChangeLog
libmicrohttpd/src/daemon/daemon.c
Log:
fix gnutls error handling
Modified: libmicrohttpd/ChangeLog
===================================================================
--- libmicrohttpd/ChangeLog 2011-02-13 09:42:03 UTC (rev 14396)
+++ libmicrohttpd/ChangeLog 2011-02-13 09:53:44 UTC (rev 14397)
@@ -1,3 +1,7 @@
+Sun Feb 13 10:52:29 CET 2011
+ Handle gnutls receive error(s) for interrupted SSL
+ connections better. -MS
+
Fri Feb 11 10:15:38 CET 2011
Fixing parameter ordering in documentation (#1659). -wellska
Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c 2011-02-13 09:42:03 UTC (rev 14396)
+++ libmicrohttpd/src/daemon/daemon.c 2011-02-13 09:53:44 UTC (rev 14397)
@@ -399,6 +399,14 @@
errno = EINTR;
return -1;
}
+ if (res < 0)
+ {
+ /* Likely 'GNUTLS_E_INVALID_SESSION' (client communication
+ disrupted); set errno to something caller will interpret
+ correctly as a hard error*/
+ errno = EPIPE;
+ return res;
+ }
return res;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r14397 - in libmicrohttpd: . src/daemon,
gnunet <=