Corrected path to nxt_socket.h in comments.
This commit is contained in:
@@ -290,7 +290,7 @@ nxt_listen_socket_pool_min_size(nxt_listen_socket_t *ls)
|
||||
* A remote socket is usually unbound and thus has unspecified Unix
|
||||
* domain sockaddr_un which can be shortcut to 3 bytes. To handle
|
||||
* a bound remote socket correctly ls->socklen should be at least
|
||||
* sizeof(struct sockaddr_un), see comment in unix/nxt_socket.h.
|
||||
* sizeof(struct sockaddr_un), see comment in nxt_socket.h.
|
||||
*/
|
||||
ls->socklen = 3;
|
||||
size = ls->socklen + sizeof("unix:") - 1;
|
||||
|
||||
@@ -954,7 +954,7 @@ nxt_runtime_sockaddr_unix_parse(nxt_task_t *task, nxt_mp_t *mp, nxt_str_t *addr)
|
||||
|
||||
/*
|
||||
* Actual sockaddr_un length can be lesser or even larger than defined
|
||||
* struct sockaddr_un length (see comment in unix/nxt_socket.h). So
|
||||
* struct sockaddr_un length (see comment in nxt_socket.h). So
|
||||
* limit maximum Unix domain socket address length by defined sun_path[]
|
||||
* length because some OSes accept addresses twice larger than defined
|
||||
* struct sockaddr_un. Also reserve space for a trailing zero to avoid
|
||||
|
||||
@@ -62,7 +62,7 @@ nxt_sockaddr_create(nxt_mp_t *mp, struct sockaddr *sockaddr, socklen_t length,
|
||||
|
||||
/*
|
||||
* Unspecified Unix domain sockaddr_un form and length are very
|
||||
* platform depended (see comment in unix/socket.h). Here they are
|
||||
* platform depended (see comment in nxt_socket.h). Here they are
|
||||
* normalized to the sockaddr_un with single zero byte sun_path[].
|
||||
*/
|
||||
|
||||
@@ -590,7 +590,7 @@ nxt_sockaddr_unix_parse(nxt_mp_t *mp, nxt_str_t *addr)
|
||||
|
||||
/*
|
||||
* Actual sockaddr_un length can be lesser or even larger than defined
|
||||
* struct sockaddr_un length (see comment in unix/nxt_socket.h). So
|
||||
* struct sockaddr_un length (see comment in nxt_socket.h). So
|
||||
* limit maximum Unix domain socket address length by defined sun_path[]
|
||||
* length because some OSes accept addresses twice larger than defined
|
||||
* struct sockaddr_un. Also reserve space for a trailing zero to avoid
|
||||
@@ -810,7 +810,7 @@ nxt_job_sockaddr_unix_parse(nxt_job_sockaddr_parse_t *jbs)
|
||||
|
||||
/*
|
||||
* Actual sockaddr_un length can be lesser or even larger than defined
|
||||
* struct sockaddr_un length (see comment in unix/nxt_socket.h). So
|
||||
* struct sockaddr_un length (see comment in nxt_socket.h). So
|
||||
* limit maximum Unix domain socket address length by defined sun_path[]
|
||||
* length because some OSes accept addresses twice larger than defined
|
||||
* struct sockaddr_un. Also reserve space for a trailing zero to avoid
|
||||
|
||||
Reference in New Issue
Block a user