Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reconnect to IB in case of failed connection #96

Open
Pl0414141 opened this issue Jul 9, 2023 · 3 comments
Open

Reconnect to IB in case of failed connection #96

Pl0414141 opened this issue Jul 9, 2023 · 3 comments

Comments

@Pl0414141
Copy link

To reproduce:

  1. Open TWS
  2. Connect via 'let mut client = Client::connect("127.0.0.1:7496", 100).unwrap();'
  3. Close TWS

Expected result:

Script still alive and trying to reconnect.

Actual result:

Script terminated.

@richard-fairthorne
Copy link
Contributor

Noticed this right away after installing. I was super happy at how fast and easy it was to connect, but I need to know if it fails.

@t00ts
Copy link

t00ts commented Mar 29, 2024

What's the status of this issue? Noticed @wboayue has a branch that may be related: issue-96-reconnect.

I'm not familiar with the project, but would consider chipping in if this is stalled. Handling connection failures seems like a crucial aspect of any system using this.

@wboayue
Copy link
Owner

wboayue commented Mar 30, 2024

@t00ts I have a branch open to fix a bug that occurs because I attempt to retry the connection. There are some cases where the library can successfully attempt a reconnection. However, in most cases, I think it's better for the library to properly propagate the network failures and let the application determine the course of action. What I'm working on fixing first are the cases where the library doesn't correctly propagate the network failures.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants