---
title: "RST interrupt"
url: "https://maker.wiznet.io/forum/14613"
markdown_url: "https://maker.wiznet.io/forum/14613/md"
type: "Forum topic"
category: "Ethernet Chips"
author: "gama"
created: "2022-08-11T12:10:08+09:00"
last_activity: "2022-08-11T13:19:27+09:00"
language: "en"
views: 435
replies: 3
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# RST interrupt

## Question

Asked by gama on 2022-08-11 in Ethernet Chips.

Hello, on a W5500, is it possible to know when it responds RST to a SYN because the sockets are occupied ?
For my application 8 sockets are too few, so I wanted to move the sockets from one server to another on demand based on traffic.

On another topic, in the DHCP client written by WizNet when it receive a valid IP from the server and the status changes to STATE_DHCP_LEASED, is it possible to close the socket while waiting the lease to end?

Thank you

## Replies

### Reply 1 by Eugeny, 2022-08-11

![](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/48.png) gama:

> is it possible to know when it responds RST to a SYN because the sockets are occupied ?

As far as I know no, the RST is sent in background and your software will not be notified about connection request rejection.

![](https://avatars.discourse-cdn.com/v4/letter/g/e9c0ed/48.png) gama:

> is it possible to close the socket while waiting the lease to end?

DHCP works using specific algorithm, and when you obtained IP address the DHCP job is finished, this socket may be reused for other communication. You do NOT need to keep socket open or leaving it alone as soon as DHCP process has finished.

### Reply 2 by gama, 2022-08-11

Thank you Eugeny. That’s really unfortunate for me. Is there any WizNet new chip with more than 8 sockets?

### Reply 3 by Eugeny, 2022-08-11 (in reply to reply 2)

At present no, according to this [web page](https://www.wiznet.io/product/tcpip-chip/). AFAIK you are not expected to make high-end networking devices basing on these chips. What you can control is freeing socket(s) as early as possible into listening mode. Next, you can design remote software to try another IP address (another server) if it receives RST from current IP address (therefore move this socket selection functionality from W5500 driver to remote software).

---

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