We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c2f850 commit 9a4f04eCopy full SHA for 9a4f04e
src/server/ocsigen_socket.ml
@@ -42,8 +42,10 @@ let make_sockets addr port =
42
let ipv6_socket =
43
try [make_ipv6_socket Unix.inet6_addr_any port]
44
with Unix.Unix_error
45
- ((Unix.EAFNOSUPPORT | Unix.EPROTONOSUPPORT),
46
- _, _) -> []
+ ((Unix.EAFNOSUPPORT
+ | Unix.EPROTONOSUPPORT
47
+ | Unix.EADDRINUSE (* GH issue #104 *)
48
+ ), _, _) -> []
49
in
50
(make_ipv4_socket Unix.inet_addr_any port)::ipv6_socket
51
| IPv4 addr ->
0 commit comments