Commit Graph

5976 Commits

Author SHA1 Message Date
unbit 59a76bb85c Merge pull request #999 from Darvame/patch-5
lua_plugin: new stuff
2015-09-15 07:38:11 +02:00
unbit 26bd4aa489 Merge pull request #522 from ncopa/master
fix building with musl libc
2015-09-15 07:34:34 +02:00
Hleran 7e601d6d8d lua_plugin: cache_exists_multi, no false pls
return nil instead of false
2015-09-13 07:01:12 +03:00
Hleran c2e83fe01d lua_plugin: last
fixes, fixes, removing unnecessary stuff
2015-09-13 06:24:26 +03:00
Unbit 281c1f5427 added Rump unikernel preliminary support 2015-09-10 11:27:43 +02:00
Unbit 33df0dbcc9 attempt to fix #1034 2015-09-10 09:35:53 +02:00
unbit cd24b11369 Merge pull request #1033 from xrmx/solaris11
Fix compilation with solaris 11
2015-09-10 08:34:56 +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
Hleran 637ead553a lua_plugin: mule: posible segfault, chunked_read
websocket_send __tostring metatable
2015-09-04 01:55:34 +03:00
Hleran 5ebc399cce lua_plugin: better mules 2015-09-03 00:45:51 +03:00
Unbit e55ac57e07 fixed #1026 2015-09-01 22:25:21 +02:00
Hleran f03f679a5c lua_plugin: mules, cache som fixes 2015-08-31 21:49:13 +03:00
Hleran 72ae69090a lua_plugin: cache_get, cache_get_tmulti
cache_get, cache_get_tmulti
returns key-value table
2015-08-30 02:01:59 +03:00
Hleran 1d595be2d9 lua_plugin: cleanup, more queues, more cache
and loop of nested tables inside headers
2015-08-27 23:15:29 +03:00
unbit 095c75055f Merge pull request #1021 from Ashald/patch-1
Pass LIBDIR to linker in Python plugin
2015-08-27 06:34:36 +02:00
Roberto De Ioris 20a0be1897 worker logger implementation #894 2015-08-27 05:43:04 +02:00
Borys Pierov 637952d048 Pass LIBDIR to linker in python plugin
To make it compile properly when LD_RUN_PATH is ignored.
2015-08-26 19:18:21 -04:00
Hleran a7181572e6 lua_plugin: queues, extend wsapi
dunno why so many additions and deletions
basic queues, remove cache_set_tables (cache_set will do it now)
extend wsapi with 4th argument without breaking it
2015-08-26 19:36:59 +03:00
unbit 920d94c055 Merge pull request #1016 from operasoftware/statsd-dont-send-workers
Add no-workers option to statsd plugin
2015-08-25 18:13:28 +02:00
Marek Wiewiorski 72647fada7 Place check before the lock, and goto to the end of the while block. Instead of strstr use uwsgi_starts_with. 2015-08-25 17:57:57 +02:00
Marek Wiewiorski 82a011e14d Add no-workers option to statsd plugin 2015-08-25 15:58:15 +02:00
Roberto De Ioris 772deaa083 support for single char PATH_INFO, attempt to fix #263 2015-08-25 15:45:25 +02:00
Hleran 94ccb6b030 lua_plugin: mules
separate api, mules
2015-08-22 18:42:41 +03:00
Hleran 01d3133fce lua_plugin: remove atexit, fixes
don't spawn lua_states on workers, if nothing to run
cache multi_set,update,del also returns number of bad keys
remove atexit, does not work as expected
2015-08-21 18:29:04 +03:00
Hleran 377fc2d863 lua_plugin: metric, cache, fixes, cleanups 2015-08-21 01:25:12 +03:00
unbit 59df10466a Merge pull request #1009 from yueyoum/patch-spooler-signal-as-task
Patch spooler signal as task
2015-08-19 17:14:59 +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
Roberto De Ioris eab664ae8b added -dev to 2.1 version 2015-08-18 19:48:54 +02:00
yueyoum 9a0681a6e0 Merge branch 'test' into patch-spooler-signal-as-task
Introduce a new param: spooler-signal-as-task
In present, the spooler-max-tasks only works for spool tasks
With this patch, the signal based events (cron, timer)
can also be treated as tasks.
When reach the spooler-max-tasks limits,
the spool process will restart.

This helps for alleviate memory leaks
2015-08-19 00:21:40 +08:00
yueyoum cd69e718aa spooler-signal-as-task 2015-08-19 00:19:03 +08:00
Hleran 8d2465db9b lua_plugin: lua_createtable, signals
using prehashed lua_createtable when we can instead of lua_newtable
plugin specific regsiter signal
add_file_monitor, add_timer, add_rb_timer, add_cron, alarm
2015-08-16 15:41:39 +03:00
unbit 69fb3c8426 Merge pull request #1004 from marcan/master
rados plugin: Add username parameter
2015-08-12 16:51:06 +02:00
Hector Martin 7cf499127f rados plugin: Add username parameter 2015-08-12 22:22:42 +09:00
Hleran 6921e8f820 lua_plugin: atexit, lazy signal routing
uwsgi_lua_atexit to commit garbage-collection metamethods
lazy signal routing: empty 'receiver' value on master table
2015-08-07 07:36:13 +03:00
Hleran 37971671cb lua_plugin: own signal ref table in each lua_State 2015-08-07 02:39:44 +03:00
Hleran 271c6aa13b lua_plugin: rpc via uwsgi.rpc_ref table 2015-08-06 19:40:52 +03:00
Hleran c375920c63 lua_plugin: proper uwsgi.log
uwsgi.log like buildin print function
dummy response cfunction
2015-08-06 05:17:20 +03:00
Hleran 8e28051d2e lua_plugin: metatable.__tostring
also can yield and send metatable with __tostring attr;
some cleanups and optimizations;
2015-08-05 23:58:22 +03:00
unbit d5114da3aa Merge pull request #998 from xrmx/systemdfixup
systemd_logger: fix build with recent systemd
2015-08-04 11:19:48 +02:00
Riccardo Magliocchetti 9787f6882c systemd_logger: fix build with recent systemd
Since systemd 209 all the functionalities of libsystemd-* have
been merged in libsystemd.
2015-08-04 11:13:32 +02: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 74eb3b282e always define _GNU_SOURCE for linux or GNU libc
We are using various extenstions that the spec say depends on _GNU_SOURCE,
for example unshare, CPU_SET, CPU_ZERO, cpu_set_t. We enable those always
for linux or GNU (kbsd/gnu)

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
2015-08-04 09:16:34 +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
Natanael Copa fb9d063e81 define WAIT_ANY if missing
POSIX uses -1 and does not define WAIT_ANY so we need to define it if
needed.

See:
http://pubs.opengroup.org/onlinepubs/9699919799/functions/waitpid.html
http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/sys_wait.h.html

Signed-off-by: Natanael Copa <ncopa@alpinelinux.org>
2015-08-03 16:37:33 +02:00
Roberto De Ioris 1b3799d879 fixed #948 2015-08-02 08:35:53 +02:00
unbit 194f0bf94a Merge pull request #981 from Darvame/patch-4
lua_plugin: --lazy-apps, --threads and other
2015-08-02 08:11:29 +02:00
unbit b68a9d4d04 Merge pull request #986 from yueyoum/gevent-websocket
Allow call uwsgi websocket API in other greenlet. (enhanced)
2015-08-02 08:08:18 +02:00
Roberto De Ioris 5cbe0d078c fixed alarm backlog 2015-08-02 07:46:21 +02:00