-
Notifications
You must be signed in to change notification settings - Fork 3k
Socket connect() timeout facility needed #14102
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
Comments
@star297 thank you for raising this issue.Please take a look at the following comments: How can we reproduce your issue? NOTE: If there are fields which are not applicable then please just add 'n/a' or 'None'. This indicates to us that at least all the fields have been considered. |
Run this and try to connect to a Null or dead IP address:
The connect time will always be 30 seconds no matter what timeout is set |
@star297 it has been 5 days since the last reminder. Could you please update the issue header as previously requested? |
Thank you for raising this detailed GitHub issue. I am now notifying our internal issue triagers. |
cc @ARMmbed/mbed-os-connectivity |
Background to this is in #13056. From discussion there, just deleting the "nonblocking false" line wasn't sufficient - the "nonblocking true" had to be pulled up into its place. Has that analysis changed? Oh, I think it has because of #13205. So after that, both "nonblocking" calls in This would make the Mbed OS That's why the If you want to avoid potential app breakage you may want to gate the change on a config flag. Maybe have a |
Depreciate the original functionality to allow the timeout would be the normal Mbed way :) If you do not call the I don't think you will be able to produce a depreciated message during compile will be the issue though. |
We closed this issue because it has been inactive for quite some time and we believe it to be low priority. If you think that the priority should be higher, then please reopen with your justification for increasing the priority. |
Description of defect
No control of LWIP connect() timeout.
TCPSocket needs a timeout.
@kjbracey-arm
Re issue #13056
In folder: connectivity\lwipstack\source\LWIPStack.cpp
Could you guys remove the 'netconn_set_nonblocking(s->conn, false);' please?
To allow Socket.set_timeout(); to work.
Or something to that effect.
I believe the default is 30 seconds, I need and use timeouts in the order of 10-200ms.
I have to change this on every OS update and can't use Mbed-Online.
Target(s) affected by this defect ?
All targets that would want to use LWIP
Toolchain(s) (name and version) displaying this defect ?
Latest Mbed Studio and On-Line toolchains.
What version of Mbed-os are you using (tag or sha) ?
mbed-os-5.15.0
mbed-os-6.6.0
What version(s) of tools are you using. List all that apply (E.g. mbed-cli)
Mbed Studio
Mbed Studio-Online
Mbed OnLine
How is this defect reproduced ?
Calling a connect() timeout of 100ms
has no effect on the default connect() timeout that appears to be around 30 seconds.
The text was updated successfully, but these errors were encountered: