You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by ic...@apache.org on 2016/01/04 16:26:27 UTC

svn commit: r1722894 - /httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c

Author: icing
Date: Mon Jan  4 15:26:27 2016
New Revision: 1722894

URL: http://svn.apache.org/viewvc?rev=1722894&view=rev
Log:
hmm, how did that ever work?

Modified:
    httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c

Modified: httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c
URL: http://svn.apache.org/viewvc/httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c?rev=1722894&r1=1722893&r2=1722894&view=diff
==============================================================================
--- httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c (original)
+++ httpd/test/mod_h2/trunk/mh2fuzz/h2c_conn.c Mon Jan  4 15:26:27 2016
@@ -16,6 +16,7 @@
 #include <apr.h>
 #include <apr_strings.h>
 #include <apr_poll.h>
+#include <apr_time.h>
 #include <apr_uri.h>
 
 #include <nghttp2/nghttp2.h>
@@ -188,11 +189,13 @@ apr_status_t h2c_conn_connect(h2c_conn *
         printf("connecting to %s (%s)...", c->addr->hostname, c->ip_addr);
     }
     
+    apr_socket_timeout_set(c->socket, apr_time_from_sec(10));
     status = apr_socket_connect(c->socket, c->addr);
     if (status != APR_SUCCESS && !APR_STATUS_IS_EAGAIN(status)) {
         return status;
     }
     
+    apr_socket_timeout_set(c->socket, apr_time_from_sec(60));
     if (c->verbose > 0) {
         printf("done.\n");
     }