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

Successful connect() does not set 'closed' field to 'false' #4

Open
RaptDept opened this issue May 30, 2017 · 2 comments
Open

Successful connect() does not set 'closed' field to 'false' #4

RaptDept opened this issue May 30, 2017 · 2 comments

Comments

@RaptDept
Copy link

  1. Connect successfully
  2. Wait until connection is closed (this.closed === true)
  3. Call connect() again
  4. Call some command, e.g. put()
  5. Error('Connection is closed') is thrown from client.js
@mickhansen
Copy link
Contributor

Hi @RaptDept,

That sounds highly odd, the libraries i use on top of this often call connect.
Could you open a PR with a failing test in https://github.com/burstable/node-beanstalkd-client/blob/master/test/integration/client.test.js?

@mickhansen
Copy link
Contributor

Ah, thinking of it i don't think i reuse any instances of client after they close.

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

2 participants