[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r12727 - libmicrohttpd/src/daemon
From: |
gnunet |
Subject: |
[GNUnet-SVN] r12727 - libmicrohttpd/src/daemon |
Date: |
Tue, 24 Aug 2010 14:26:52 +0200 |
Author: wachs
Date: 2010-08-24 14:26:52 +0200 (Tue, 24 Aug 2010)
New Revision: 12727
Modified:
libmicrohttpd/src/daemon/daemon.c
Log:
FIXED: gnutls_record_recv can return GNUTLS_E_AGAIN
In this situation gnutls_record_recv has to be called again
Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c 2010-08-24 08:26:21 UTC (rev 12726)
+++ libmicrohttpd/src/daemon/daemon.c 2010-08-24 12:26:52 UTC (rev 12727)
@@ -349,7 +349,18 @@
static ssize_t
recv_tls_adapter (struct MHD_Connection *connection, void *other, size_t i)
{
- return gnutls_record_recv (connection->tls_session, other, i);
+ int res;
+ res = gnutls_record_recv (connection->tls_session, other, i);
+ if (res != GNUTLS_E_AGAIN)
+ return res;
+ else
+ {
+ while (res == GNUTLS_E_AGAIN)
+ {
+ res = gnutls_record_recv (connection->tls_session, other, i);
+ }
+ return res;
+ }
}
/**
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r12727 - libmicrohttpd/src/daemon,
gnunet <=