G
G
GhostTonyRus2021-11-02 16:47:49
Python
GhostTonyRus, 2021-11-02 16:47:49

How to restore python socket connection?

Hello. I have a client server application. When I disconnect from the server using client.shutdown(socket.SHUT_RDWR), client.close(), and try to reconnect, I get "Connection failed: [WinError 10038] An operation was attempted on a non-socket object." How can I get around this error?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vindicar, 2021-11-02
@Vindicar

Recreate socket client?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question