How to increase the maximum message size that is sent from the browser
diconart opened this issue ยท 9 comments
When sending a large message from a browser, the web socket server disconnects, what needs to be written in the config to fix this?
"/api*":
websocket:
enabled: yes
topic-hash-size: 100ki // Not working
I can't see any particular limit in websocket message codec. So it's either some bug or memory error, or some limit on specific message kind.
If there was not enough memory, would the web socket server fall?
Config.yaml
``
Server:
zmq-io-threads: 4
disk-io-threads: 4
listen:
- host: 0.0.0.0
port: 8001
error-log:
level: 7
warning-timeout: 300
mime-types:
extra:
yaml: text/x-yaml
mov: application/x-movable
no-warnings: yes
Routing:
routing: !Suffix ~
routing-by: !Header Host
map:
":8001":
routing: !Prefix ~
routing-by: !Uri ~
map:
"/api":
websocket:
enabled: yes
forward: !zmq.Push
- !zmq.Bind "tcp://0.0.0.0:8002"
subscribe: !zmq.Sub
- !zmq.Bind "tcp://0.0.0.0:8003"
``
Screenshot https://i.imgur.com/G6887Vz.jpg
The problem is in the volume of data sent, as soon as I remove one symbol, it is sent, as I add one connection break
Successful if send message with size max 16,0 Kb (16 384 byte)
Maybe it's here: https://github.com/tailhook/libwebsite/blob/master/src/core.c#L1119
Thanks It works