Accepting 2 connections but only connecting 1 #912
-
I'm deploying a server in a Raspberry Pi using eventlet and a WSGI application. When connecting a client for the first time, always 2 'accepted' messages are prompted in the terminal each with a different port number and only 1 time the program calls the connect callback for the server. The Client is just creating 1 socket and trying to connect it. 2022-03-27 17:19:57,242 [INFO] (8007) wsgi starting up on http://0.0.0.0:1234 (I changed the client IP for security reasons of the company ) There are some ghost connections happening on the server but I can't figure out why and eventually the server is crashing. This connections are coming from the client IP addres but they never show up as connected in the callback on the client. The setup of python and the libraries was already done when i got to troubleshoot the program and it is a little bit off, this might be one of the reasons it is behaving so extrangely. Windows-Client Raspi-Server Im sorry if this is not the way to create a post but im new to github and im in a bit of hurry. Any help would be appreciated ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You are using the polling transport, which is constantly sending requests to the server. If the WebSocket transport is available, the client will eventually upgrade to WebSocket, and there won't be any more requests like those you are showing. |
Beta Was this translation helpful? Give feedback.
You are using the polling transport, which is constantly sending requests to the server. If the WebSocket transport is available, the client will eventually upgrade to WebSocket, and there won't be any more requests like those you are showing.