This project is read-only.
1
Vote

Netduino Plus disconnects sockets when renewing DHCP lease

description

It seems that every time the Netduino Plus renews it's DHCP lease, it closes all open sockets. This makes sense if the IP address has changed, but if it has not changed, I see no reason to close the sockets.

Adding a reconnect routine to the software is not difficult, but this is an annoyance and might cause someone problems down the road in specific applications.

Attached is a Wireshark capture of a few minutes of ethernet traffic to/from the Netduino including the DHCP renew and socket disconnect.

MFDeploy says this when the disconnect happens (lines marked with a # are debug output from the application):

Link Update:
     IP: 10.0.1.146
     GW: 10.0.1.1

Exception @ GetInput(): 10050

Exception @ IsConnected()

Socket died!

Exception @ IsConnected()

KeepAlive quitting! Val=15

Link Update:
     IP: 10.0.1.146
     GW: 10.0.1.1

Connected!

file attachments

comments