Skip to content

Commit

Permalink
Revert "Allow re-binding to a port after socket is closed."
Browse files Browse the repository at this point in the history
This reverts commit e8d746e.
  • Loading branch information
Daniele Lacamera committed Jan 8, 2015
1 parent 4805e06 commit 08a837f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stack/pico_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,7 @@ int pico_socket_shutdown(struct pico_socket *s, int mode)
if (PROTO(s) == PICO_PROTO_TCP) {
if ((mode & PICO_SHUT_RDWR) == PICO_SHUT_RDWR)
{
pico_socket_alter_state(s, PICO_SOCKET_STATE_SHUT_LOCAL | PICO_SOCKET_STATE_SHUT_REMOTE, PICO_SOCKET_STATE_BOUND, 0);
pico_socket_alter_state(s, PICO_SOCKET_STATE_SHUT_LOCAL | PICO_SOCKET_STATE_SHUT_REMOTE, 0, 0);
pico_tcp_notify_closing(s);
}
else if (mode & PICO_SHUT_WR)
Expand Down

0 comments on commit 08a837f

Please sign in to comment.