Git Product home page Git Product logo

Comments (8)

molda avatar molda commented on July 17, 2024

Hi @joaomirandasa try to increase request length limit by adding bellow line to your config file:

module#flow	(Object)		: { limit: 1024 } 

default limit is 50kB

from flow.

joaomirandas avatar joaomirandas commented on July 17, 2024

I tried this right now and nothing changes, when I add a new component or tab this just gone away. I feel this can be something related to allocated memory or similar, I check my servers capacity and not full wet, I have a lot of free memory space to process.

If @molda have any ideia we can make a voice call, Skype/WhatsApp/Zoom to discuss. Please help me fix this to back to work.

Thank You.

from flow.

molda avatar molda commented on July 17, 2024

Is there any chance you could send me your app as it is now so i can check what's going on?

from flow.

petersirka avatar petersirka commented on July 17, 2024

@joaomirandasa we need to see server logs from Total.js app. Then open Traffic tab and send me memory consumption. And as wrote Martin, we need to see app and debug it.

from flow.

joaomirandas avatar joaomirandas commented on July 17, 2024

hello again friends,

Today I wakeup and have a different ideia of @molda told me, when I checked my configure file i saw previously changes on Flow edited on

@molda --> module#flow My changes --> package#flow (Object) : { limit: 1024 }

So I change what @molda say and appears going good.
I yet have questions about program, i dont discover on documentation or related posts about self close connection using socketIO + TotalJS + Flow, you see this at some moment before?! socket io just close connection and restart my chatbox.

Thank you a lot @petersirka and @molda about support and explanations, Flow is an awesome tool and I would like be a collaborator at Brasil, maybe I can translate this for community or create components to share.

from flow.

petersirka avatar petersirka commented on July 17, 2024

@joaomirandasa sorry for delay. Total.js Flow doesn't user Socket.io. Do you use a reverse proxy?

from flow.

joaomirandas avatar joaomirandas commented on July 17, 2024

Hello again,

@petersirka Yess! i'm using reverse proxy on Ubuntu 14.04, my operations going well.
Let me explain a little bit better, I create an chat using Flow + TotalJS and embed Socket.io to create clients connection, but sometimes socket or totals (I didn't discover), close and reopen socket connection, I tried edit my configures on reverse proxy but nothing changes. Any idea?

`

Default server configuration

server {
listen 80 default_server;
listen [::]:80 default_server;

	root /var/www/html;

	# Add index.php to the list if you are using PHP
	index index.html index.htm index.nginx-debian.html;

	server_name _;

	location / {
        proxy_set_header   Host             $http_host;
        proxy_set_header   X-Forwarded-Protocol $scheme;
        proxy_set_header   X-Forwarded-For  $remote_addr;
        proxy_set_header   X-NginX-Proxy    true;
        proxy_pass         http://0.0.0.0:8000;

        # max 15 minutes keep-alive
        proxy_read_timeout  600s;

        proxy_redirect     off;
        proxy_http_version 1.1;
        proxy_set_header Upgrade          $http_upgrade;
        proxy_set_header Connection       "upgrade";
        break;
	}

}

server {
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
server_name ****.MY.WEBSITE;

    access_log            /var/log/nginx/*****.access.log;

	root /var/www/html;

	# Add index.php to the list if you are using PHP
	index index.html index.htm index.nginx-debian.html;

	location / {
		proxy_pass http://localhost:8000;
		proxy_redirect      http://localhost:8080 https://****.MY.WEBSITE;
		proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
        proxy_read_timeout  600s;
	}

}`

from flow.

petersirka avatar petersirka commented on July 17, 2024

So you're providing Socket.io with Total.js together, right? If yes then it's not good. Total.js Flow can't use Socket.io and Socket.io can't use Total.js websocket --> so the bug can be here. Nginx config looks good.

from flow.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.