Corrected path to nxt_socket.h in comments.

This commit is contained in:
Ruslan Ermilov
2017-08-16 14:16:14 +03:00
parent 2614758c04
commit 23d38a5794
3 changed files with 5 additions and 5 deletions

View File

@@ -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 * A remote socket is usually unbound and thus has unspecified Unix
* domain sockaddr_un which can be shortcut to 3 bytes. To handle * domain sockaddr_un which can be shortcut to 3 bytes. To handle
* a bound remote socket correctly ls->socklen should be at least * 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; ls->socklen = 3;
size = ls->socklen + sizeof("unix:") - 1; size = ls->socklen + sizeof("unix:") - 1;

View File

@@ -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 * 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[] * limit maximum Unix domain socket address length by defined sun_path[]
* length because some OSes accept addresses twice larger than defined * length because some OSes accept addresses twice larger than defined
* struct sockaddr_un. Also reserve space for a trailing zero to avoid * struct sockaddr_un. Also reserve space for a trailing zero to avoid

View File

@@ -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 * 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[]. * 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 * 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[] * limit maximum Unix domain socket address length by defined sun_path[]
* length because some OSes accept addresses twice larger than defined * length because some OSes accept addresses twice larger than defined
* struct sockaddr_un. Also reserve space for a trailing zero to avoid * 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 * 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[] * limit maximum Unix domain socket address length by defined sun_path[]
* length because some OSes accept addresses twice larger than defined * length because some OSes accept addresses twice larger than defined
* struct sockaddr_un. Also reserve space for a trailing zero to avoid * struct sockaddr_un. Also reserve space for a trailing zero to avoid