edgurgel / poxa

Pusher server implementation compatible with Pusher client libraries.
https://poxa.onrender.com/
MIT License
1.05k stars 96 forks source link

Connection drops after a few seconds #182

Open agilityportal opened 2 years ago

agilityportal commented 2 years ago

While creating an instance on aws ec2 instance, the installation was successful, after a few seconds, the connection drops any ideas?

agilityportal commented 2 years ago

do we need a reverse proxy?

edgurgel commented 2 years ago

Hi @agilityportal , do you know how many seconds? Have you tried tweaking ACTIVITY_TIMEOUT?

agilityportal commented 2 years ago

Hi @edgurgel yes, we tried a few different ports and time outs, like 30 mins, 60 mins, etc. We going to try without the docker and ill report back our findings

edgurgel commented 2 years ago

Hmmm maybe check the client side if there is any configuration there? Poxa should respect the activity timeout once the websocket is set up.

agilityportal commented 2 years ago

Nothing wrong with the client we used pusher before as paid service, we also used the poxa settings and it works. we had it working but as soon as we changed the instance type the services we down we restarted it and not working. Would you be able to help us or take look at our server it will really help? @edgurgel

increase:ACTIVITY_TIMEOUT Security: added ssl

edgurgel commented 2 years ago

Do you see any specific error messages on Poxa's logs when the connection drops? Or on the client side? Any error message/error code?

agilityportal commented 2 years ago

absolutely nothing, we even got some outsource a person to check and still could get it to work. the client-side the messages are not been sent in the console it looks like the connection drops after a few seconds not sure if that is normal but I dont think its the reason. would you be able to help us? by taking a look

edgurgel commented 2 years ago

Hi @agilityportal, I don't have any time to look at this I'm sorry.

If you are not seeing any logs on Poxa's side and nothing Poxa's console I'm afraid no connection is getting set up properly so it seems to be a connectivity issue. I've successfully used Poxa under an ELB/ALB before and it worked fine.

agilityportal commented 2 years ago

ok a bit more information, now we have a stable connection, what the issue looks like now is that the message are been sent are slow like a few minutes in the client app, anything to point us in the right direction? @edgurgel