mandrewcito / signalrcore

SignalR Core python client
https://mandrewcito.github.io/signalrcore/
MIT License
119 stars 57 forks source link

intermittent issue faced. any solution to this? #71

Open shivamspj opened 3 years ago

shivamspj commented 3 years ago

2021-10-26 15:02:51,606 : ERROR : Traceback (most recent call last): File "websocket_app.py", line 306, in run_forever File "websocket_app.py", line 53, in read File "websocket_app.py", line 272, in read File "websocket_core.py", line 344, in recv_data_frame File "websocket_core.py", line 378, in recv_frame ConnectionAbortedError: [WinError 10053] An established connection was aborted by the software in your host machine

` server_url = conf['SignalHubUrl']

        handler = logging.StreamHandler()

        handler.setLevel(logging.DEBUG)

        hub_connection = HubConnectionBuilder() \

            .with_url(server_url) \

            .configure_logging(logging.DEBUG, socket_trace=False,handler=handler) \

            .with_automatic_reconnect({

            "type": "interval",

            "keep_alive_interval": 10,

            "reconnect_interval": 5,

            "max_attempts": 50

        }).build()

        hub_connection.on_open(lambda: print("connection opened and handshake received ready to receive messages"))

        hub_connection.start()

        hub_connection.on("APINotificationGeo_worker_multi", self.api_signalling)`