gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r12728 - libmicrohttpd/src/daemon


From: gnunet
Subject: [GNUnet-SVN] r12728 - libmicrohttpd/src/daemon
Date: Tue, 24 Aug 2010 14:44:08 +0200

Author: wachs
Date: 2010-08-24 14:44:08 +0200 (Tue, 24 Aug 2010)
New Revision: 12728

Modified:
   libmicrohttpd/src/daemon/daemon.c
Log:
FIXED: Same as in r12727 but this time for sending,
as  gnutls_record_send can also return GNUTLS_E_AGAIN


Modified: libmicrohttpd/src/daemon/daemon.c
===================================================================
--- libmicrohttpd/src/daemon/daemon.c   2010-08-24 12:26:52 UTC (rev 12727)
+++ libmicrohttpd/src/daemon/daemon.c   2010-08-24 12:44:08 UTC (rev 12728)
@@ -375,7 +375,18 @@
 send_tls_adapter (struct MHD_Connection *connection,
                   const void *other, size_t i)
 {
-  return gnutls_record_send (connection->tls_session, other, i);
+  int res;
+  res = gnutls_record_send (connection->tls_session, other, i);
+  if (res != GNUTLS_E_AGAIN)
+         return res;
+  else
+  {
+         while (res == GNUTLS_E_AGAIN)
+         {
+                 res = gnutls_record_send (connection->tls_session, other, i);
+         }
+         return res;
+  }
 }
 
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]