1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Anuncie Aqui
    Anuncie aqui você Também: fdantas@4each.com.br

[Python] SocketIO connection disconnects when sending data about 1mb over it through nginx...

Discussão em 'Python' iniciado por Stack, Setembro 15, 2024.

  1. Stack

    Stack Membro Participativo

    I've socketio connection in python flask that I can connect to it directly and send data over it without any problem, but when I use nginx as webserver and reverse_proxy and pass socketio connection via it, the connection disconnects when I send large data, about 1MB. `

    I used many nginx options, such as:

    location /socket.io {
    proxy_buffering off;
    proxy_pass http://backend;
    proxy_http_version 1.1;
    large_client_header_buffers 4 16k;
    client_body_buffer_size 100M;
    proxy_buffering off;
    proxy_buffers 8 5M;
    proxy_buffer_size 5M;
    proxy_read_timeout 300s;
    proxy_send_timeout 300s;
    proxy_buffering off; # Disable buffering for WebSocket`

    How can I resolve this issue?

    Continue reading...

Compartilhe esta Página