From 3ffd0eb84ab0378c61d502423d20005e6ff83e5f Mon Sep 17 00:00:00 2001 From: Andy Green Date: Thu, 11 Aug 2016 05:36:08 +0800 Subject: [PATCH] server max protocol element 64 https://github.com/warmcat/libwebsockets/issues/601 --- lib/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/server.c b/lib/server.c index b3b1a687a..66e3035dd 100644 --- a/lib/server.c +++ b/lib/server.c @@ -1005,7 +1005,7 @@ lws_handshake_server(struct lws *wsi, unsigned char **buf, size_t len) struct allocated_headers *ah; int protocol_len, n = 0, hit; char protocol_list[128]; - char protocol_name[32]; + char protocol_name[64]; char *p; if (len >= 10000000) {