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

Socket Stuck CLOSING #40

Open
markarupert opened this issue Jul 16, 2017 · 2 comments
Open

Socket Stuck CLOSING #40

markarupert opened this issue Jul 16, 2017 · 2 comments

Comments

@markarupert
Copy link

Running this on iOS my socket frequently gets stuck in the CLOSING state. Is there any way to destructively close a socket.

@jchornenky
Copy link

we have this same issue.

@cdeckard
Copy link

cdeckard commented Jul 10, 2019

i had this issue when trying to close sockets on "pause" event. the first one would close, but the other would get stuck in CLOSING, with no way to get it out of that state. I tried the following ugliness when trying to reopen the socket:

	// nasty kludge -- should look to see
	// if we can use chrome.sockets.tcp instead  .. . .
	if (this.socket.state = Socket.State.CLOSING) {
		this.socket._state = Socket.State.CLOSED;
	}

and it seemed to work, but of course, it created all sorts of havok. anyone have any ideas on this?

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

3 participants