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

Small HTTP requests fail to call close #503

Closed
gfwilliams opened this issue Mar 11, 2015 · 2 comments
Closed

Small HTTP requests fail to call close #503

gfwilliams opened this issue Mar 11, 2015 · 2 comments

Comments

@gfwilliams
Copy link
Member

See http://forum.espruino.com/conversations/264143/#comment12149929

Basically if your request is tiny, all data arrives in a chunk and the connection is closed at once.

Espruino currently handles the data coming in properly, but the close event comes in before the 'open' event has executed, so no handler was added yet and nothing is executed for it.

Maybe this could be fixed by queueing the event itself, rather than the functions that handle it - but that's a pretty big change.

@gfwilliams
Copy link
Member Author

Finding this one hard to reproduce - apparently it's on a CC3000 - so it might be CC3k-specific.

Might even be unfixable as there were some dodgy problems where calling some functions (select?) on a closed socket totally locked up the CC3k.

@gfwilliams
Copy link
Member Author

I'm pretty sure this is fixed by #528 now

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