search for: pack_sockaddr_in

Displaying 2 results from an estimated 2 matches for "pack_sockaddr_in".

Did you mean: unpack_sockaddr_in
2009 Oct 13
7
Unicorn Nginx Issue
I''ve setup nginx with this server { listen 80; server_name unicorn.local; location / { proxy_pass http://unicorn; } } upstream unicorn { server unix:/Users/mattmongeau/projects/test/unicorn/tmp/sockets/unicorn.sock; } When I run unicorn_rails -c config/unicorn.rb -E development I can access the application just fine on unicorn.local When I run unicorn_rails -c
2013 Oct 25
2
[PATCH] support SO_REUSEPORT on new listeners (:reuseport)
...ur OS" + sock.setsockopt(IPPROTO_IPV6, IPV6_V6ONLY, opt[:ipv6only] ? 1 : 0) + end sock.setsockopt(SOL_SOCKET, SO_REUSEADDR, 1) + if defined?(SO_REUSEPORT) && opt[:reuseport] + sock.setsockopt(SOL_SOCKET, SO_REUSEPORT, 1) + end sock.bind(Socket.pack_sockaddr_in(port, addr)) IO_PURGATORY << sock Kgio::TCPServer.for_fd(sock.fileno) diff --git a/test/unit/test_socket_helper.rb b/test/unit/test_socket_helper.rb index a38082c..abc177b 100644 --- a/test/unit/test_socket_helper.rb +++ b/test/unit/test_socket_helper.rb @@ -184,4 +184,12 @@ cla...