---
title: "Disconnect() does not work"
url: "https://maker.wiznet.io/forum/10670"
markdown_url: "https://maker.wiznet.io/forum/10670/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "avivf"
created: "2014-11-16T15:17:48+09:00"
last_activity: "2017-05-04T08:34:21+09:00"
language: "en"
views: 527
replies: 1
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# Disconnect() does not work

## Question

Asked by avivf on 2014-11-16 in Ethernet Chips.

Hello,
In the disconnect() function the getSn_SR() returns SOCK_INIT instead of SOCK_CLOSED.
Can you help me understand why is that?

Thanks

## Replies

### Reply 1 by hjjeon0608, 2014-11-17

After you send disconnect request to opponent you can receive ack message and then W5500 is closed.
But by some reason, if W5500 cannot ack message, it waits timeout. So until timeout occurred, the socket status is SOCK_INIT.

If W5500 cannot close, refer to RTR and RCR register.

---

Source: https://maker.wiznet.io/forum/10670
