-
Notifications
You must be signed in to change notification settings - Fork 64
[net] Throw out an error before the server responds #1187
Comments
I cannot seem to reproduce this problem. I tested after applying my patch from #1474. |
Verified with commit 06cce05. It won't go into function |
OK, I finally see what you mean. First, to help reproduce this in the future, I needed to patch tests/tools/tests-tcp6-server.py to use port 4242 which TCPClient6.js is expected. Then start that on your host, and boot up this system. The problem is that the first time it shows the "Server not found" message instead of working; it's only on retry that it starts working. Now that I fully understand the issue we can lower the priority and don't need to fix this for 0.4. |
Verified with commit b32969f on Arduino101, FRDM-K64F and Qemu. |
Try to reserve the word |
Description
I test socket.connect function as client and find socket connection throw out error so fast, the server hasn't had time to respond yet. So, the socket connection will be failed when first connecting.
Test Code
/samples/TCPClient6.js
Steps to Reproduction
Actual Result
If first connecting, socket connection will be failed.
Expected Result
Socket connection wait respondent from server until time out, and throw out error.
Test Builds
Additional Information
The text was updated successfully, but these errors were encountered: