연결 해제시 문제
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: 연결 해제시 문제
by hjjeon0608 ·
안녕하세요.
TCP 에서는 close 를 4-way handshake 과정을 거쳐 close가 됩니다.
현재 아마도 SOCK_FIN_WAIT 상태일 것으로 생각됩니다. 이 상태에서 빠져 나오지 못하는 경우는 다양합니다.
트래픽이 많아져서 FIN packet이나 ACK packet을 주고 받지 못하는 경우일 수도 있으며 server에서 제대로 처리 못하는 경우도 있습니다.
따라서 원천적인 해결 방법은 문제가 발생하는 부분을 찾아야 합니다.
그러나 일반적인 어플리케이션에서는 그리고 W5200에서는 active close나 passive close에서 disconnect process 과정이 정상적으로 완료되지 않을 경우 timeout interrupt가 발생합니다. 그 이후 자동으로 close 상태로 변합니다.
또한 timeout은 RTR과 RCR 설정에 따라 몇 번의 재전송 이후 발생하게 됩니다.
아마 이 RTR과 RCR설정을 길게 잡으셔서 해제되지 않다고 판단하신 것으로 생각됩니다. 이 설정값을 줄이시면 바로 close가 될겁니다.
감사합니다.