Opened 8 years ago
Closed 7 years ago
#1280 closed defect (invalid)
ngx_event_connect_peer() recvbuf doesn't exist
Reported by: | Owned by: | ||
---|---|---|---|
Priority: | minor | Milestone: | |
Component: | other | Version: | 1.11.x |
Keywords: | Cc: | ||
uname -a: | |||
nginx -V: | 1.11.6 |
Description
ngx_event_connect_peer() sets SO_RECVBUF, but no initializing the pc->recvbuf.
if (pc->rcvbuf) {
if (setsockopt(s, SOL_SOCKET, SO_RCVBUF,
(const void *) &pc->rcvbuf, sizeof(int)) == -1)
{
ngx_log_error(NGX_LOG_ALERT, pc->log, ngx_socket_errno,
"setsockopt(SO_RCVBUF) failed");
goto failed;
}
}
Change History (4)
comment:1 by , 8 years ago
Resolution: | → invalid |
---|---|
Status: | new → closed |
comment:2 by , 8 years ago
Resolution: | invalid |
---|---|
Status: | closed → reopened |
comment:4 by , 7 years ago
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Note:
See TracTickets
for help on using tickets.
The
pc->rcvbuf
field is expected to be initialized by the caller. Currently, all callers in nginx itself initialize it to0
, and thus defaultSO_RCVBUF
is used.