Architecture: socket.end() doesn't disconnect until I write something #4978
Replies: 1 comment
-
Posted at 2015-09-04 by DrAzzy How would I test this? I'm happy to help, but I'm not sure how you test something like this. Posted at 2015-09-04 by Kolban @drazzy, Posted at 2015-09-07 by @gfwilliams Just to add, if you do a native Linux compile (even on a VM) this is dead easy to test, as you get a standard linux binary that you can run from the command-line and debug. Posted at 2015-09-21 by Kolban Thanks Gordon, I'll shoot for a Linux compile for testing. Did you have any thoughts on the content of the original question? Is this expected behavior that when we form a connect and then issue an end() that it doesn't actually end the TCP connection at that time? Posted at 2015-09-21 by @gfwilliams Just checked on linux and it's as you say (but even doing Posted at 2015-09-21 by @gfwilliams Ok, if you pull from GitHub now it'll be fixed. Posted at 2015-09-21 by Kolban Awesome ... thanks Gordon .. I'll be testing now. Posted at 2015-09-21 by Kolban I'm hoping to make a big push this month to make some good progress. Hopefully this will involve some well tested "Pull requests" from my clone of the "espruino/Espruino" project. However, I'm still somewhat new to GitHub and want to make sure I don't make a mistake. Here is what I have done so far.
Now ... weeks have passed and I want to make sure that the "nkolban/Espruino" is still in synch with the "espruino/Espruino". Is there a mechanism/recipe/technique I should use to make sure that my fork is up-todate with "espruino/Espruino"? Posted at 2015-09-21 by @gfwilliams GitHub has a doc on it here Once you've set up github.com/espruino/Espruino as your upstream repository it's pretty basic to just pull any changes I make and merge them in. Posted at 2015-09-21 by Kolban Thank you sir ... that looks straight forward enough. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Posted at 2015-09-04 by Kolban
Am working on the port of Espruino to an ESP8266 and have found something I am not understanding. If I form a TCP socket connection to a partner and the invoke the "end()" method on the socket I am finding that the request to disconnect doesn't actually happen until after I try and transmit something further. For example:
doesn't cause the socket connection issued from the ESP8266 to be disconnected until I try the following:
Unfortunately, I don't have a real Espruino board to test against so I can't tell if this is how it works on the real Espruino or whether I have broken something in the ESP8266 implementation.
Beta Was this translation helpful? Give feedback.
All reactions