Ask Your Question
2

Is it possible to enable reconnection when the Python urllib connection is restored?

asked 2021-12-27 11:00:00 +0000

scrum gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2022-04-08 02:00:00 +0000

david gravatar image

No, it is not possible to enable reconnection when the Python urllib connection is restored. Once the connection is lost, the urllib library will need to create a new connection. It is recommended to catch any exceptions that may be raised when the connection is lost and handle them accordingly to ensure that the program does not crash. In some cases, you may also need to implement a retry mechanism to attempt to reconnect multiple times before giving up.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2021-12-27 11:00:00 +0000

Seen: 7 times

Last updated: Apr 08 '22