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

twsConnect does not respect clientId #12

Open
offerm opened this issue May 25, 2016 · 0 comments
Open

twsConnect does not respect clientId #12

offerm opened this issue May 25, 2016 · 0 comments

Comments

@offerm
Copy link

offerm commented May 25, 2016

When using twsConnect with specific clientId, and that clientId is already in use, the code provides a connection using the next available clientId.

The reason can be seen in twsConnect lines 39-45:

if (curMsg == .twsIncomingMSG$ERR_MSG) {
    errMsg <- readBin(s, character(), 4)
    close(s)
    on.exit()
    return(twsConnect(clientId + 1, host, port, verbose, timeout, filename, blocking))
}

I suggest to add another argument to control how this should work.

Offer

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

1 participant