Olivier Ligot
|
b4ec6fdff8
|
Socket: reuse address to resolve the error "address already in use"
On Unix, when we stop the server, and then re-start it right away, we get an
error that the address is already in use:
http://www.softlab.ntua.gr/facilities/documentation/unix/unix-socket-faq/unix-socket-faq-4.html#ss4.1
This means that the sockets that were used by the first incarnation of the
server are still active.
One way to resolve this is to set the socket option SO_REUSEADDR:
http://www.softlab.ntua.gr/facilities/documentation/unix/unix-socket-faq/unix-socket-faq-4.html#ss4.5
Tested on Ubuntu 12.04 LTS
|
2013-05-29 11:14:58 +02:00 |
|
Jocelyn Fiat
|
00d6caba93
|
Added support for server name
|
2012-12-20 15:35:48 +01:00 |
|
Jocelyn Fiat
|
e85213689e
|
TCP_STREAM_SOCKET: added try_ready_for_reading' which is the same as ready_for_reading' but without any timeout
|
2012-03-13 17:38:33 +01:00 |
|
Jocelyn Fiat
|
800815c8dd
|
Added put_readable_string_8 to avoid call to .as_string_8
|
2011-12-01 17:48:15 +01:00 |
|
Jocelyn Fiat
|
34bb793599
|
Added license.lic and copyright to Javier
|
2011-10-07 14:36:20 +02:00 |
|
Javier Velilla
|
9dd1439a2f
|
Refactor to use the new library structure convention.
|
2011-07-15 08:15:31 -03:00 |
|