Commit Graph
3134 Commits
Author SHA1 Message Date
Riccardo Magliocchetti 0cb2e6852b plugins/python: fix tracebaker resource leaks on import error
Reported by Coverity as CID #971061, #971062, #971063.
2013-01-27 12:19:45 +01:00
Riccardo Magliocchetti a559e9ea63 plugins/python: fix a couple of memory leaks
Reported by Coverity as CID #971065, #971066.
2013-01-27 12:10:19 +01:00
Riccardo Magliocchetti 89dfa7976a core/socket: fix a couple of memory leaks
Reported by Coverity as CID #971053, #971054.
2013-01-27 11:54:48 +01:00
Riccardo Magliocchetti 74d6bac54b plugins/python: check return value of PyType_Ready in init_uwsgi_embedded_module
Reported by Coverity as CID #970972.
2013-01-27 10:33:17 +01:00
Riccardo Magliocchetti 5647aff995 plugins/python: remove double assignment to same variable
Which coverity reports as undefined behaviour in CID #970978.
2013-01-27 10:22:31 +01:00
Riccardo Magliocchetti cf67363164 core: prefer strncpy over strcpy in emperor
Coverity reports a possible buffer overrun which is not possible
at the momento because the only caller of uwsgi_emperor_blacklist_add
use another fixed buffer of the same size as te one we are writing
to. Still better safe than sorry. Reported as CID #971078.
2013-01-27 10:17:01 +01:00
Roberta Giordano 1bdec68fb7 added uagent to logvars 2013-01-27 09:34:55 +01:00
Unbit 5698955384 added ltime logformat 2013-01-27 08:59:05 +01:00
unbit 732466e4e4 Merge pull request #133 from xrmx/coverity3
Fix "argument cannot be negative" errors reported by Coverity
2013-01-26 22:21:44 -08:00
unbit 23165a1587 Merge pull request #132 from xrmx/coverity2a
More issues reported by Coverity
2013-01-26 22:20:15 -08:00
unbit d9a8e071e2 Merge pull request #131 from xrmx/coverity
Fix some issues spotted by coverity scan
2013-01-26 22:18:03 -08:00
Riccardo Magliocchetti e106a6ef61 plugins/python: check uwsgi_connect return code in uwsgi_python_harakiri
Reported by Coverity as CID #970996.
2013-01-26 21:23:17 +01:00
Riccardo Magliocchetti 297bd429a9 core: check return of uwsgi_connect in uwsgi_opt_connect_and_read
Reported by Coverity as CID #970995.
2013-01-26 21:18:55 +01:00
Riccardo Magliocchetti 838bdd27a6 core: check return of getgroups()
When we pass 0 as size to getgroups() the number of additional
groups is return. If it returns error or 0 don't even try to
poke for additional groups.

Reported by Coverity as CID #970944.
2013-01-26 21:10:33 +01:00
Riccardo Magliocchetti f50e179100 core: don't call dup2 on negative fd after open() error
Also call close() only if open was succesful.
Reported by Coverity as CID #970991.
2013-01-26 21:00:11 +01:00
Riccardo Magliocchetti c6ddaf6b8d core: add missing legion mutex unlock on error path
Reported by Coverity as CID #970988.
2013-01-26 19:45:46 +01:00
Riccardo Magliocchetti cbc06f92d0 core: add missing unlock in wsgi_req_accept
Reported by Coverity as CID #970989.
2013-01-26 19:29:46 +01:00
Riccardo Magliocchetti 386fac2421 core: fix copy & paste bug in uwsgi_manage_command_cron
It looks like tm_hour is used where tm_mon was intended.
Reported by Coverity as CID #970975.
2013-01-26 19:18:15 +01:00
Riccardo Magliocchetti 3138d0b6c3 plugins/carbon: add missing call to va_end()
Reported by Coverity as CID #971091.
2013-01-26 19:14:52 +01:00
Riccardo Magliocchetti 135a5a505c lib/linux_ns.c: fix some possible null pointer dereferences
In case we cannot open /self/proc/mounts or it is malformed.
Spotted by Coverity, CID #971002, #971003.
2013-01-26 19:06:49 +01:00
Riccardo Magliocchetti 1b47a8932e plugins/cache: fix resource leak
Reported by Coverity, CID #971053.
2013-01-26 18:44:08 +01:00
Riccardo Magliocchetti 01e4d07fb8 plugins/corerouter: use correct goto label
After cwd has been allocated we should exit through end0.
Spotted by Coverity, CID #971054.
2013-01-26 18:39:37 +01:00
Riccardo Magliocchetti ec1bfdeb2a plugins/router_http: fix leak if connection to host fails
Fix Coverity CID #971069.
2013-01-26 18:29:36 +01:00
Riccardo Magliocchetti ac3d617037 core: remove spurious call to dlsym
Fix use after free reported by Coverity, CID #971090
2013-01-26 18:13:11 +01:00
Roberta Giordano 253805daa6 added rsize,hsize and cl logvars, added logvar: routing instruction 2013-01-26 17:25:18 +01:00
unbit 63e4964808 Merge pull request #130 from prymitive/busyness_ifdef_fix
better backlog ifdef in cheaper_busyness
2013-01-26 05:41:00 -08:00
Łukasz Mierzwa 57962d2e6e better backlog ifdef in cheaper_busyness 2013-01-26 14:08:29 +01:00
unbit f81ea8e898 Merge pull request #109 from prymitive/busyness_backlog
spawn new workers if backlog is > 0 for some time
2013-01-26 05:04:24 -08:00
Łukasz Mierzwa 821af5d763 spawn new workers if backlog is > 0 for some time 2013-01-26 13:59:42 +01:00
unbit 2e923aaf9e Merge pull request #128 from prymitive/rsyslog_fixes
split messages > 995 bytes into chunks in rsyslog plugin
2013-01-26 03:46:12 -08:00
Łukasz Mierzwa 15b12983e1 * add buf to uwsgi_logger struct and use it when logger needs buffering (rsyslog + graylog2)
* allow to split big syslog messages into chunks
* allow to set maximum syslog packet size (some syslog deamons support that)
2013-01-26 12:37:23 +01:00
unbit 15f0f8d294 Merge pull request #125 from prymitive/worker_lifetime
new options to control worker minimum and maximum lifetime
2013-01-26 03:29:34 -08:00
unbit c6658fca72 Merge pull request #129 from prymitive/named_cache_stats
don't free lock name of a named cache
2013-01-26 03:22:13 -08:00
Łukasz Mierzwa 5bbc7ee673 don't free lock name of a named cache 2013-01-26 11:56:16 +01:00
Unbit 37927c6f5d ported sweepers to the new api and added more statistics 2013-01-26 07:43:12 +01:00
Unbit 1a6ee9a775 added --emperor-procname 2013-01-26 04:11:07 +01:00
Unbit d42649d80b implemented SPDYv3 WINDOW UPDATE 2013-01-25 18:58:11 +01:00
Unbit 2acd338429 SPDY improvements 2013-01-25 17:38:42 +01:00
Unbit 7adcb19d1a fixed --http-to-https 2013-01-25 12:51:26 +01:00
Unbit a2f776b487 fixed rawrouter allocation bug 2013-01-25 11:00:29 +01:00
Unbit 941ae2b5e3 better non-blocking support for protocols 2013-01-25 10:38:10 +01:00
Unbit e88d4bbb79 improved expect-continue management 2013-01-25 09:41:39 +01:00
Unbit db352999b8 --check-cache takes an optional parameter (the cache name) 2013-01-24 20:43:15 +01:00
Unbit 744fed60b9 Merge branch 'master' of https://github.com/unbit/uwsgi 2013-01-24 20:41:00 +01:00
Unbit df85a8e6a9 added uwsgi_cache_safe_get2() commodity function 2013-01-24 20:40:43 +01:00
unbit 7ba7fd55d0 Merge pull request #126 from prymitive/master_init_fix
One more fix is needed for master branch
2013-01-24 11:32:47 -08:00
Łukasz Mierzwa 6fd2176b3e fixed new cache typo 2013-01-24 20:25:11 +01:00
Unbit 271ac33193 fixed a regression caused by new caching system 2013-01-24 20:20:14 +01:00
Unbit 8d33491211 added magix gzipper in http corerouter and added sessions counter in corerouters 2013-01-24 19:31:50 +01:00
Unbit 13a42599ea corerouters --*-use-cache option can take an optional cache name 2013-01-24 10:24:46 +01:00