mirror of
https://github.com/clearlinux/uwsgi.git
synced 2026-10-03 23:48:22 +00:00
two new management flag for backlog queue
This commit is contained in:
@@ -96,8 +96,11 @@ void get_linux_tcp_info(int fd) {
|
||||
if (!uwsgi.shared->ti.tcpi_sacked) {
|
||||
return;
|
||||
}
|
||||
|
||||
uwsgi.shared->options[UWSGI_OPTION_BACKLOG_STATUS] = uwsgi.shared->ti.tcpi_unacked;
|
||||
if (uwsgi.shared->ti.tcpi_unacked >= uwsgi.shared->ti.tcpi_sacked) {
|
||||
uwsgi_log_verbose("*** uWSGI listen queue of socket %d full !!! (%d/%d) ***\n", fd, uwsgi.shared->ti.tcpi_unacked, uwsgi.shared->ti.tcpi_sacked);
|
||||
uwsgi.shared->options[UWSGI_OPTION_BACKLOG_ERRORS]++;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -473,6 +473,8 @@ struct uwsgi_opt {
|
||||
#define UWSGI_OPTION_LOG_5xx 12
|
||||
#define UWSGI_OPTION_LOG_BIG 13
|
||||
#define UWSGI_OPTION_LOG_SENDFILE 14
|
||||
#define UWSGI_OPTION_BACKLOG_STATUS 15
|
||||
#define UWSGI_OPTION_BACKLOG_ERRORS 16
|
||||
|
||||
#define UWSGI_MODIFIER_ADMIN_REQUEST 10
|
||||
#define UWSGI_MODIFIER_SPOOL_REQUEST 17
|
||||
|
||||
Reference in New Issue
Block a user