[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27770 - libmicrohttpd/src/microspdy
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27770 - libmicrohttpd/src/microspdy |
Date: |
Fri, 5 Jul 2013 18:54:29 +0200 |
Author: andreyu
Date: 2013-07-05 18:54:29 +0200 (Fri, 05 Jul 2013)
New Revision: 27770
Modified:
libmicrohttpd/src/microspdy/io_raw.c
Log:
spdy: non blockable sockets for the raw IO
Modified: libmicrohttpd/src/microspdy/io_raw.c
===================================================================
--- libmicrohttpd/src/microspdy/io_raw.c 2013-07-05 16:48:33 UTC (rev
27769)
+++ libmicrohttpd/src/microspdy/io_raw.c 2013-07-05 16:54:29 UTC (rev
27770)
@@ -59,20 +59,15 @@
int
SPDYF_raw_new_session(struct SPDY_Session *session)
{
- (void)session;
+ int fd_flags;
- //TODO
//setting the socket to be non-blocking
- /*
- * different handling is needed by libssl if non-blocking is used
- *
- fd_flags = fcntl (new_socket_fd, F_GETFL);
+ fd_flags = fcntl (session->socket_fd, F_GETFL);
if ( -1 == fd_flags
- || 0 != fcntl (new_socket_fd, F_SETFL, fd_flags | O_NONBLOCK))
+ || 0 != fcntl (session->socket_fd, F_SETFL, fd_flags |
O_NONBLOCK))
{
SPDYF_DEBUG("WARNING: Couldn't set the new connection to be
non-blocking");
}
- */
return SPDY_YES;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27770 - libmicrohttpd/src/microspdy,
gnunet <=