summaryrefslogtreecommitdiffstats
path: root/modules/http2/h2.h
diff options
context:
space:
mode:
authorStefan Eissing <icing@apache.org>2023-10-16 13:07:31 +0200
committerStefan Eissing <icing@apache.org>2023-10-16 13:07:31 +0200
commit88e86af5ac258ebad451dbc96399ec21a58fb049 (patch)
tree7f6ad0a4667843ea4b5ef152c427fb33d894f4d0 /modules/http2/h2.h
parent * mod_http2: improved early cleanup of streams. (diff)
downloadapache2-88e86af5ac258ebad451dbc96399ec21a58fb049.tar.xz
apache2-88e86af5ac258ebad451dbc96399ec21a58fb049.zip
*) mod_http2: enable WebSockets on when compiling against a
recent enough nghttp2 version. [Joe Orton] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1913005 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r--modules/http2/h2.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/http2/h2.h b/modules/http2/h2.h
index cfecb3d9a3..06e7087c04 100644
--- a/modules/http2/h2.h
+++ b/modules/http2/h2.h
@@ -20,6 +20,8 @@
#include <apr_version.h>
#include <ap_mmn.h>
+#include <nghttp2/nghttp2ver.h>
+
struct h2_session;
struct h2_stream;
@@ -39,7 +41,7 @@ struct h2_stream;
#define H2_USE_POLLFD_FROM_CONN 0
#endif
-#if H2_USE_PIPES
+#if H2_USE_PIPES && defined(NGHTTP2_VERSION_NUM) && NGHTTP2_VERSION_NUM >= 0x012200
#define H2_USE_WEBSOCKETS 1
#else
#define H2_USE_WEBSOCKETS 0