Comparison

plugins/mod_websocket.lua @ 11560:3bbb1af92514

Merge 0.11->trunk
author Matthew Wild <mwild1@gmail.com>
date Thu, 13 May 2021 11:17:13 +0100
parent 11393:e6122e6a40a0
parent 11540:1937b3c3efb5
child 11771:4c0802b52673
comparison
equal deleted inserted replaced
11538:30feeb4d9d0b 11560:3bbb1af92514
26 local build_close = websocket_frames.build_close; 26 local build_close = websocket_frames.build_close;
27 local parse_close = websocket_frames.parse_close; 27 local parse_close = websocket_frames.parse_close;
28 28
29 local t_concat = table.concat; 29 local t_concat = table.concat;
30 30
31 local stanza_size_limit = module:get_option_number("c2s_stanza_size_limit", 10 * 1024 * 1024); 31 local stanza_size_limit = module:get_option_number("c2s_stanza_size_limit", 1024 * 256);
32 local frame_buffer_limit = module:get_option_number("websocket_frame_buffer_limit", 2 * stanza_size_limit); 32 local frame_buffer_limit = module:get_option_number("websocket_frame_buffer_limit", 2 * stanza_size_limit);
33 local frame_fragment_limit = module:get_option_number("websocket_frame_fragment_limit", 8); 33 local frame_fragment_limit = module:get_option_number("websocket_frame_fragment_limit", 8);
34 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5); 34 local stream_close_timeout = module:get_option_number("c2s_close_timeout", 5);
35 local consider_websocket_secure = module:get_option_boolean("consider_websocket_secure"); 35 local consider_websocket_secure = module:get_option_boolean("consider_websocket_secure");
36 local cross_domain = module:get_option("cross_domain_websocket"); 36 local cross_domain = module:get_option("cross_domain_websocket");