---
title: "W5500 socket closes"
url: "https://maker.wiznet.io/forum/14495"
markdown_url: "https://maker.wiznet.io/forum/14495/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "phonyclan"
created: "2022-03-07T09:22:27+09:00"
last_activity: "2022-03-08T07:58:36+09:00"
language: "en"
views: 410
replies: 1
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# W5500 socket closes

## Question

Asked by phonyclan on 2022-03-07 in Ethernet Chips.

I’ve been using a socket to receive data from a remote host, after a short while, the transfer fails:

[![Capture](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/8/875f77ee2caeb7d7252b2f521675a93e1539fb3b.png) Capture1258×294 177 KB](https://maker.wiznet.io/forum_uploads/wiznet/original/2X/8/875f77ee2caeb7d7252b2f521675a93e1539fb3b.png)

And when i check socket status, it is in the “SOCK_CLOSED” state. All of this happens without me explicitly closing the socket. So i’d like to know in what situation would the W5500 close a socket?

Any help is welcome.

## Replies

### Reply 1 by phonyclan, 2022-03-08

Ok, maybe it’s because of timeout.
How can i make sure timeouts do NOT close the socket? Perhaps i could disable it in the Sn_IMR register?

regards

---

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