multisnow
8ea8a33d0c
also remove all master fifo if vacuum is true
2015-09-21 00:56:06 +08:00
C Anthony Risinger
849a85b250
Introduce uwsgi.binary_argc
...
If more than uwsgi.binary_path is needed to make uWSGI self-referential on
reload, plugins can use this field to skip processing of N initial arguments.
eg. if uWSGI is embedded in a host application or interpreter::
python -B -E -m uwsgi --socket=:8000 --show-config [...]
argv[1:5] are intended for Python, and not for processing by uWSGI, even though
uWSGI might want to manage it (process name). The arguments also cannot just be
ignored because they are crucial for proper reloads.
2015-09-17 04:00:20 -05:00
Unbit
fb3628d729
attempt to fix http parser
2015-09-16 16:07:45 +02:00
unbit
26bd4aa489
Merge pull request #522 from ncopa/master
...
fix building with musl libc
2015-09-15 07:34:34 +02:00
Unbit
281c1f5427
added Rump unikernel preliminary support
2015-09-10 11:27:43 +02:00
Riccardo Magliocchetti
bbdf4bbab3
Fix compilation with solaris 11
...
Based on original patch from Nathan Tamblyn.
Fix #831
2015-09-09 18:28:58 +02:00
Roberto De Ioris
20a0be1897
worker logger implementation #894
2015-08-27 05:43:04 +02:00
Roberto De Ioris
772deaa083
support for single char PATH_INFO, attempt to fix #263
2015-08-25 15:45:25 +02:00
yueyoum
ebb77b55d7
Fix, check spooler_signal_as_task
2015-08-19 17:36:29 +08:00
yueyoum
55c7e653fd
fix spooler-signal-as-task
2015-08-19 02:16:54 +08:00
yueyoum
cd69e718aa
spooler-signal-as-task
2015-08-19 00:19:03 +08:00
unbit
7efa3666b7
Merge pull request #820 from xrmx/mimetypedebug
...
core/static: print mimetype of file in debug print
2015-08-04 10:39:22 +02:00
Natanael Copa
1b59a46fc0
use portable pthread functions instead of the non-portable
...
The pthread functions pthread_mutexattr_setrobust and
pthread_mutex_consistent are in posix nowdays. Use those instead of their
non-portable synonyms.
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org >
2015-08-03 16:37:33 +02:00
Natanael Copa
92672880d7
Check for GNU libc instead of linux for use of execinfo.h
...
Since execinfo.h is a GNU extension it makes more sense to check for GNU
than to assume that linux is GNU.
This is needed for building on linux with musl libc.
Signed-off-by: Natanael Copa <ncopa@alpinelinux.org >
2015-08-03 16:37:33 +02:00
Roberto De Ioris
5cbe0d078c
fixed alarm backlog
2015-08-02 07:46:21 +02:00
Roberto De Ioris
262e370c81
added struct fields for --emperor-trigger-socket
2015-08-02 07:26:50 +02:00
Riccardo Magliocchetti
0dd07763b2
core/io: cleanup error handling in uwsgi_proxy_nb
...
Coverity reports a null pointer dereference (CID 1231243) after
check of ub. After auditing the callers it looks like it is always
called with ub defined so add a guard againt it being null at the
top just to be sure.
While at it fixup indentation of the function.
2015-07-28 12:32:08 +02:00
Ragnar Rova
b608eb1772
OSX 10.11 supports TCP_FASTOPEN
...
But does not define SOL_TCP.
IPPROTO_TCP is the equivalent.
2015-07-15 21:54:39 +02:00
unbit
a99ee6d09d
Merge pull request #909 from xrmx/coverity050515-2
...
Fishy coverity fixes
2015-07-08 12:37:41 +02:00
Riccardo Magliocchetti
a2aa5a69a4
More specific error when you are missing a router plugin
...
The "missing router" bit could help figuring out what's wrong.
2015-07-07 18:13:20 +02:00
Riccardo Magliocchetti
f674af3972
Don't touch rss if it hasn't been initialized in get_memusage
...
Followup for Coverity CID 1308302
2015-07-07 15:49:14 +02:00
Riccardo Magliocchetti
9e24385cb1
Avoid usage of uninitialized variable
...
Reported by Coverity as CID #1308302
2015-07-07 15:44:14 +02:00
Unbit
26babdffb0
added unix signal registration hook
2015-07-06 16:09:55 +02:00
Unbit
056417303c
ensure the mem_collector does not receive signals
2015-06-16 18:29:23 +02:00
INADA Naoki
f3bd8a9fab
Add spare2 cheaper algorithm for larger workload
2015-06-16 16:17:22 +09:00
INADA Naoki
58c99abc38
When cheaper_overload=1, decheap worker for every 1 sec
2015-06-11 18:59:48 +09:00
Roberto De Ioris
40c31f4601
added fixpathinfo routing action
2015-06-07 19:36:29 +02:00
Roberto De Ioris
3de97b9f7e
fixed shared sockets for gateways
2015-06-03 07:23:48 +02:00
Jay Oster
fb7f9f228a
Add null terminator to uwsgi_get_dot_h() and uwsgi_config_py()
...
- Fixes #933
2015-06-01 17:43:48 -07:00
Unbit
3e5493259e
added sor and micros routing vars
2015-05-28 12:24:22 +02:00
Roberto De Ioris
c92a0a3857
fixed #649
2015-05-23 05:16:02 +02:00
Kevin Xu
b0f62cfccd
Wait for initial thread last.
...
Since after calling pthread_cancel() and pthread_join() on initial
thread, the worker process will appear to be a zombie, which prevents
worker process to report its own memory stat, and if one of the spawned
threads hangs, the worker process will hang forever since
evil-reload-on-rss won't work when memory stat is missing.
2015-05-22 16:14:44 -07:00
Евгений Протозанов
ea9f95b19f
Releasing attrs memory when it's needed
2015-05-21 07:38:32 +04:00
Евгений Протозанов
f3688a34ec
Added deallocating function for uwsgi_dyn_dict
2015-05-21 07:37:11 +04:00
Евгений Протозанов
9f696030a2
Rewrote uwsgi_emperor_simple_do_with_attrs to set instance attributes before starting it
2015-05-21 00:11:29 +04:00
Roberto De Ioris
aaca4ef236
added memory collector
2015-05-17 05:52:27 +02:00
unbit
0a765f9fb4
Merge pull request #908 from xrmx/coverity050515
...
Some coverity fixes
2015-05-14 06:20:31 +02:00
Unbit
be01eacb6e
added bigranges sharedarea tests
2015-05-13 15:42:41 +02:00
Unbit
9640312e22
fixed #922
2015-05-13 15:08:17 +02:00
Roberto De Ioris
84374ba4f9
implementation of #904
2015-05-06 09:11:35 +02:00
Roberto De Ioris
a358816dc7
added Vladimir Didenko to CONTRIBUTORS and report CA errors only on ssl-verbose mode
2015-05-06 07:24:11 +02:00
Vladimir Didenko
c444baef22
Extract verification details only in error case
2015-05-05 19:15:44 +03:00
Vladimir Didenko
e60430a826
Fix client certificate validation. Log validation errors
2015-05-05 16:20:59 +03:00
Riccardo Magliocchetti
2d732d229e
core/utils: remove unused assignment
...
Reported by Coverity as CID #1231250
2015-05-05 15:19:25 +02:00
Riccardo Magliocchetti
752f5aada6
core/cache: remove ignored assignment
...
key_len value gets reassigned few lines below.
Reported by Coverity as CID #1231251
2015-05-05 15:14:26 +02:00
Riccardo Magliocchetti
3dfbf879d9
Fix resource leak in uwsgi_zerg_attach
...
Reported by Coverity as CID #1296717
2015-05-05 14:31:44 +02:00
Riccardo Magliocchetti
a2b6d33c8f
core/emperor: fix a few memory leaks
...
Reported by Coverity as CID #1296718 , #1296719 , #1296720
2015-05-05 14:27:22 +02:00
Riccardo Magliocchetti
7151bf4480
fix memoery leak in uwsgi_setns
...
Reported by Coverity as CID #1296721
2015-05-05 14:21:27 +02:00
Riccardo Magliocchetti
42ac14449c
core/legion: fix use of uninitialized value
...
Rework conditionals so that best_uuid is always initialized.
Reported by Coverity as CID #1296722
2015-05-05 14:18:30 +02:00
Riccardo Magliocchetti
0c159cb8e5
Revert "emperor: use fchmod instead of chmod to avoid TOCTOU race"
...
Using fchmod on sockets is not portable.
This reverts commit 9e163df897 .
2015-05-01 14:25:30 +02:00