Commits

Sebastien Mondet committed 9521eac

Server: set socket options before `bind` call

  • Participants
  • Parent commits 222dfcf

Comments (0)

Files changed (1)

         | `Inet i -> i
         | `Address a -> Address.inet a
       in
-      bind fd (ADDR_INET (addr, port));
       Socket_options.set fd socket_options;
+      bind fd (ADDR_INET (addr, port));
       listen fd port;
       return fd
     with