vmware / vmware/pyvmomi

Retry connection in case RemoteDisconnected exception issued during connection attempt

Open
#918 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement needs verification
Dominant language
Python
Stars
2.3k
Forks
763
PR merge metrics
No merged PRs in 30d

Description

In case of idle time, httplib often issues RemoteDisconnected(Remote end closed connection without response), when we attempt to make a connection to the server using SoapStubAdapter:InvokeMethod. Second attempt always succeeds.
This can be easily resolved by reconnecting again, using retry.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the SoapStubAdapter:InvokeMethod entry point and trace how connection attempts handle RemoteDisconnected after idle time. The issue is complete when a failed first attempt retries the connection and the second attempt succeeds; no file or test is named, so those must be located in the repository.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.