Skip to content

Client background thread doesn't stop after Timeout #821

@goyzhang

Description

@goyzhang

If I am right there are some background threads/tasks to handle incoming message. While I am calling :

try:
    v = sio.call('get_v, 'data',  timeout=5)
except socketio.exceptions.TimeoutError as e:
    print("error")
finally:
    sio.disconnect()
#main thread exit here, but the python process doesn't

Assume that the sever will return after 10s, I will have to wait for 10s with or without sio.disconnect() for the python process to end. It seems some background threads are preventing the process from terminating. In case of timeout, why does it have to wait? Or is there anyway to abort those non-daemon threads?

I'm running the latest client on a windows PC.

Metadata

Metadata

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions