Skip to content
This repository has been archived by the owner on Feb 11, 2020. It is now read-only.

Call unsubAndClose on client timeout instead of close. #56

Closed
wants to merge 1 commit into from
Closed

Call unsubAndClose on client timeout instead of close. #56

wants to merge 1 commit into from

Conversation

samirnaik
Copy link
Contributor

Noticed the error: "tryint to send a packet to a disconnected client" after a mosca was running for a while. Traced it down to timed out clients not calling the correct close method. They should be calling unsubAndClose instead of just close. Tried to add a test case for this, but wasn't able to successfully repro this in the unit test framework.

@samirnaik
Copy link
Contributor Author

This should also help with Issue #55

@mcollina
Copy link
Collaborator

This branch fails on node 0.8, not really sure what the issue is :(.

@mcollina
Copy link
Collaborator

This should be fixed by #57.

@mcollina mcollina closed this Sep 18, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants