Disconnect() does not return TIMEOUT error
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Ethernet Chips
No replies yet. Be the first to reply.
Join the discussion.
Share projects and connect with makers.
Joined before the site update? first.
New to WIZnet Makers?
We sent a verification link to your address. Open it to activate your account, then log in.
Accounts from this email provider are reviewed by an administrator after verification. Approval usually takes one business day.
Already have an account?
Enter your email address. If it belongs to an account, we'll send a link to set a new password. Members who joined before the site update use this to set their password.
If an account uses that address, we sent a link to set a new password. The link works once and expires in 30 minutes.
Know your password?
Need an account?
RE: Disconnect() does not return TIMEOUT error
by avivf ·
Hello,
I’ve been reading your reply. You mentioned that in a server application it’s better to use close() rather than disconnect().
Thanks,
Aviv
RE: Disconnect() does not return TIMEOUT error
by Coccoliso ·
The disconnection process involves communication with the peer with ACK / FIN exchanges and can be Active or Passive ( depends on connected peer ). In any case, at the end of the disconnection, the status Sn_SR always passes in SOCK_CLOSED and it is quite hard to find SOCK_CLOSING, SOCK_FIN_WAIT or SOCK_LAST_ACK for the speed with which move from one state to another.
I noticed that in LAN is very difficult to read these intermediate states and if you wait a disconnect you get lost forever in an intermediate state while if you connect through internet is quite repeatable.
RE: Disconnect() does not return TIMEOUT error
by avivf ·
Hello,
I’ve been reading your reply. You mentioned that in a server application it’s better to use close() rather than disconnect().
Thanks,
Aviv
RE: Disconnect() does not return TIMEOUT error
by Coccoliso ·
In client or server application the problem remains…