diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-09-28 06:51:49 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-09-28 06:51:49 +0000 |
commit | 434a4b0ca9418ec31eec243e5f77c1af8e67a070 (patch) | |
tree | 24b08f46e8e8d4f3efc7362f50fddf355601d98e /src/transport | |
parent | a1d613b1e775afb6020db47af7ffa3b3915d6c91 (diff) | |
download | gnunet-434a4b0ca9418ec31eec243e5f77c1af8e67a070.tar.gz gnunet-434a4b0ca9418ec31eec243e5f77c1af8e67a070.zip |
MHD has a better way than a configure test for this
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/plugin_transport_http_server.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/transport/plugin_transport_http_server.c b/src/transport/plugin_transport_http_server.c index b97ab3306..8303263f6 100644 --- a/src/transport/plugin_transport_http_server.c +++ b/src/transport/plugin_transport_http_server.c | |||
@@ -512,8 +512,9 @@ found: | |||
512 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, | 512 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, plugin->name, |
513 | "Server: Setting Timeout to %u\n", to); | 513 | "Server: Setting Timeout to %u\n", to); |
514 | #endif | 514 | #endif |
515 | // MHD_set_connection_option (mhd_connection, MHD_CONNECTION_OPTION_TIMEOUT, to); | 515 | #if MHD_VERSION >= 0x00090E00 |
516 | 516 | MHD_set_connection_option (mhd_connection, MHD_CONNECTION_OPTION_TIMEOUT, to); | |
517 | #endif | ||
517 | (*httpSessionCache) = sc; | 518 | (*httpSessionCache) = sc; |
518 | } | 519 | } |
519 | 520 | ||
@@ -636,7 +637,9 @@ server_disconnect_cb (void *cls, struct MHD_Connection *connection, | |||
636 | { | 637 | { |
637 | tc = s->server_recv; | 638 | tc = s->server_recv; |
638 | tc->disconnect = GNUNET_YES; | 639 | tc->disconnect = GNUNET_YES; |
639 | // MHD_set_connection_option (sc->mhd_conn, MHD_CONNECTION_OPTION_TIMEOUT, 1); | 640 | #if MHD_VERSION >= 0x00090E00 |
641 | MHD_set_connection_option (sc->mhd_conn, MHD_CONNECTION_OPTION_TIMEOUT, 1); | ||
642 | #endif | ||
640 | } | 643 | } |
641 | } | 644 | } |
642 | if (sc->direction == _RECEIVE) | 645 | if (sc->direction == _RECEIVE) |
@@ -651,7 +654,9 @@ server_disconnect_cb (void *cls, struct MHD_Connection *connection, | |||
651 | { | 654 | { |
652 | tc = s->server_send; | 655 | tc = s->server_send; |
653 | tc->disconnect = GNUNET_YES; | 656 | tc->disconnect = GNUNET_YES; |
654 | // MHD_set_connection_option (sc->mhd_conn, MHD_CONNECTION_OPTION_TIMEOUT, 1); | 657 | #if MHD_VERSION >= 0x00090E00 |
658 | MHD_set_connection_option (sc->mhd_conn, MHD_CONNECTION_OPTION_TIMEOUT, 1); | ||
659 | #endif | ||
655 | } | 660 | } |
656 | if (s->msg_tk != NULL) | 661 | if (s->msg_tk != NULL) |
657 | { | 662 | { |