Browse Source

[mod_wstunnel] fix for frames larger than 64k (fixes #2858)

(thx rschmid)

x-ref:
  "Wrong websocket frametype if frame is longer then UINT16_MAX"
  https://redmine.lighttpd.net/issues/2858
personal/stbuehler/fix-fdevent
Glenn Strauss 3 years ago
parent
commit
30fe3684f6
  1. 1
      src/mod_wstunnel.c

1
src/mod_wstunnel.c

@ -1122,7 +1122,6 @@ static int send_rfc_6455(handler_ctx *hctx, mod_wstunnel_frame_type_t type, cons
len = 1+MOD_WEBSOCKET_FRAME_LEN16_CNT+1;
}
else {
memset(mem, 0, sizeof(mem));
mem[1] = MOD_WEBSOCKET_FRAME_LEN63;
mem[2] = 0;
mem[3] = 0;

Loading…
Cancel
Save