You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because of the embedded-nal, it is not possible to determine if a socket is currently in the "connecting" state. Some network stacks (such as the W5500) can perform the connection asynchronously, so it is possible for the call to block until the connection completes.
However, other network stacks (such as smoltcp) require processing the network stack within the application to further the TCP connection state. This makes it impossible for the connect() calls to block in these stacks.
To facilitate this, minimq currently continually calls connect() on the same socket until it is fully connected. This can have unintended effects if the network stack implementation has an intermediate "connecting" state that is corrupted by the duplicated connect() call.
We should standardize:
Add an is_connecting() API to the embedded-nal
Enforce that network stacks allow extraneous calls of connect() whenever the socket is not in a connected state.
The text was updated successfully, but these errors were encountered:
Because of the
embedded-nal
, it is not possible to determine if a socket is currently in the "connecting" state. Some network stacks (such as the W5500) can perform the connection asynchronously, so it is possible for the call to block until the connection completes.However, other network stacks (such as smoltcp) require processing the network stack within the application to further the TCP connection state. This makes it impossible for the connect() calls to block in these stacks.
To facilitate this,
minimq
currently continually callsconnect()
on the same socket until it is fully connected. This can have unintended effects if the network stack implementation has an intermediate "connecting" state that is corrupted by the duplicatedconnect()
call.We should standardize:
is_connecting()
API to the embedded-nalconnect()
whenever the socket is not in a connected state.The text was updated successfully, but these errors were encountered: