summaryrefslogtreecommitdiff
path: root/src/websockets/qwebsocket_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/websockets/qwebsocket_p.h')
-rw-r--r--src/websockets/qwebsocket_p.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/websockets/qwebsocket_p.h b/src/websockets/qwebsocket_p.h
index 08be774..e78970d 100644
--- a/src/websockets/qwebsocket_p.h
+++ b/src/websockets/qwebsocket_p.h
@@ -75,6 +75,12 @@ public:
QWebSocketProtocol::Version version);
~QWebSocketPrivate() override;
+ // both constants are taken from the default settings of Apache
+ // see: http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestfieldsize and
+ // http://httpd.apache.org/docs/2.2/mod/core.html#limitrequestfields
+ static constexpr int MAX_HEADERLINE_LENGTH = 8 * 1024; // maximum length of a http request header line
+ static constexpr int MAX_HEADERLINES = 100; // maximum number of http request header lines
+
void init();
void abort();
QAbstractSocket::SocketError error() const;