Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #61 from patricklucas/clarify_abstract_socket

Add clarification for abstract sockets
  • Loading branch information...
commit 4d413830d615e5b601767ef7cac1340e1250cd47 2 parents 0c9e508 + 989b7d7
@jonashaag authored
Showing with 4 additions and 1 deletion.
  1. +3 −0  README.rst
  2. +1 −1  bjoern/server.c
View
3  README.rst
@@ -61,6 +61,9 @@ Usage
# Bind to Unix socket:
bjoern.run(wsgi_application, 'unix:/path/to/socket')
+ # Bind to abstract Unix socket: (Linux only)
+ bjoern.run(wsgi_application, 'unix:@socket_name')
+
Alternatively, the mainloop can be run separately::
bjoern.listen(wsgi_application, host, port)
View
2  bjoern/server.c
@@ -89,7 +89,7 @@ bool server_init(const char* hostaddr, const int port)
sockaddr.sun_family = PF_UNIX;
strcpy(sockaddr.sun_path, hostaddr);
- /* Use @ for abstract */
+ /* Use @ for abstract (Linux) */
if(hostaddr[0] == '@')
sockaddr.sun_path[0] = '\0';
else
Please sign in to comment.
Something went wrong with that request. Please try again.