Skip to content

Commit

Permalink
*) mod_http2: enable WebSockets on when compiling against a
Browse files Browse the repository at this point in the history
     recent enough nghttp2 version.
     [Joe Orton]



git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1913005 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
icing committed Oct 16, 2023
1 parent 8943c46 commit 88e86af
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/http2/h2.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
#include <apr_version.h>
#include <ap_mmn.h>

#include <nghttp2/nghttp2ver.h>

struct h2_session;
struct h2_stream;

Expand All @@ -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
Expand Down

0 comments on commit 88e86af

Please sign in to comment.