yueyoum
1bd624b188
Change uwsgi.input_object() to uwsgi.request_context().
...
and change the `uwsgi.websocket_send/send_binary/recv/recv_nb`
keyword argument from `uwsgi_input` to `request_context`
2015-07-28 15:11:45 +08:00
yueyoum
41c02ad01a
check argument: uwsgi_input
2015-07-28 14:21:59 +08:00
yueyoum
8569450a85
I add this feature for using uwsgi websocket with gevent more easy and
...
convenient.
Example: tests/websockets_chat_2.py
Add: add a new API `uwsgi.input_object()` for get `struct wsgi_req *`
in python.
Modify: `uwsgi.websocket_send/send_binary/recv/recv_nb` now has a
kwarg: `uwsgi_input`.
If not provide the `uwsgi_input` keyword argument, The four function's
behavior not changed.
When provide the `uwsgi_input` keyword argument, The four function will
get `wsgi_req` from the argument.
In this way, uwsgi websocket functions can be used in other greenlets.
2015-07-28 03:18:09 +08:00
Roberto De Ioris
f514134293
fixed #914
2015-05-12 06:27:42 +02:00
Unbit
ed2ca5d333
request buffer_size is now 64bit (except for uwsgi protocol)
2014-09-21 08:26:20 +02:00
Roberto De Ioris
50e7b84fb5
uwsgi-2.1 merged to master
2014-09-12 06:47:41 +02:00
xiaost
73c3e971e6
python: add spooler_pids api for multi-spooler
...
the old `spooler_pid` api only returns the first spooler pid
2014-09-11 23:34:13 +08:00
Unbit
c6d90f3c42
fixed #669
2014-08-12 13:11:54 +02:00
Unbit
6e1c468eed
fixed #669
2014-08-12 13:10:04 +02:00
Unbit
2210f907db
fixed uwsgi.rpc
2014-08-08 22:14:46 +02:00
Unbit
92a8d6f2c5
fixed uwsgi.rpc
2014-08-08 22:14:03 +02:00
Unbit
e315c604fe
allow calling the spooler from every cpython context
2014-08-01 12:43:42 +02:00
Unbit
bc9f5d6f88
allow calling the spooler from every cpython context
2014-08-01 12:41:55 +02:00
Unbit
d6f0be74f9
fixed #668
2014-07-24 08:56:43 +02:00
Unbit
e9c0bf91ad
fixed #668
2014-07-24 08:55:52 +02:00
Unbit
daa1882921
improved harakiri for signal handlers
2014-06-23 13:42:55 +02:00
Unbit
2e14da983a
first attempt in implementing per-core harakiri
2014-06-23 12:37:22 +02:00
Roberto De Ioris
3ea2033f57
merged intellisurvey branch in 2.1
2014-05-31 06:51:13 +02:00
Babacar TALL
eab2472dd0
Exposure of 'uwsgi_metric_set_min' & 'uwsgi_metric_set_max' for python interface.
2014-05-20 11:57:53 +02:00
Unbit
154d17ec2b
correctly manage 64bit sharedarea numbers on 32bit systems
2014-05-14 16:38:11 +02:00
Unbit
0dffa344b4
various sharedarea improvements
2014-05-14 16:37:59 +02:00
Unbit
bc5a86694f
correctly manage 64bit sharedarea numbers on 32bit systems
2014-05-14 11:33:18 +00:00
Unbit
812685096b
various sharedarea improvements
2014-05-14 10:45:49 +00:00
Unbit
bf01cea062
added micros() api function
2014-04-12 18:34:57 +02:00
Roberto De Ioris
5f74e6d964
fixed stupid bug with python add_var
2014-03-15 12:51:15 +01:00
Roberto De Ioris
ae87fdd0f7
added uwsgi.add_var
2014-03-15 12:47:59 +01:00
Unbit
b5a0434710
fixed #513
2014-02-02 04:56:21 +01:00
Unbit
a0ff5b91b8
cast non-bytes arguments to bytes in python3 spool api
2014-01-05 09:08:29 +01:00
Unbit
15fa2be4ee
preliminary refactoring for the spooler
2014-01-04 19:28:01 +01:00
Unbit
61f3d162a4
getting rid og dynamic options (step 1)
2013-12-26 16:48:50 +01:00
Riccardo Magliocchetti
fbf9a5b27c
uwsgi_app.chdir is an array
...
So check if it's first member is not 0 instead.
Fix Coverity CID #971000 , #970998 .
2013-12-23 16:53:41 +01:00
Unbit
4e260fa8a1
fixed #476 and #477
2013-12-14 07:45:38 +01:00
Unbit
bb4be12fda
implemented more async api in lua
2013-12-13 11:51:05 +01:00
Unbit
82fa510030
fixed build on python 2.6
2013-12-10 12:04:52 +01:00
Unbit
a6e6bff082
sharedarea can be mapped to generic objects
2013-12-10 10:09:38 +01:00
Unbit
304f847dc6
added sharedarea_update api
2013-12-10 09:06:27 +01:00
Roberto De Ioris
5bb7f02921
added memoryview wrapper for sharedarea and locking api
2013-12-10 07:33:45 +01:00
Unbit
b934ac9588
refactored sharedarea read
2013-11-30 18:30:52 +00:00
Unbit
60b54c4d7c
allows sending websockets messages directly from a sharedarea
2013-11-30 11:19:28 +00:00
Unbit
ace79b1179
various websockets and sharedarea optimizations
2013-11-30 10:41:56 +00:00
Roberto De Ioris
98541dbc65
more sharedarea improvements
2013-11-30 07:23:05 +01:00
Roberto De Ioris
cabb6d72d9
added uwsgi.websocket_send_binary_message to cpython
2013-11-30 06:49:15 +01:00
Roberto De Ioris
0715031b00
prepare for the new sharedarea api
2013-11-29 07:39:12 +01:00
Unbit
26386909de
first attempt of moving rpc output from 16 to 64 bit
2013-11-11 13:00:20 +01:00
Unbit
40c0e139d4
added metric api to python plugin
2013-10-22 16:25:56 +02:00
Unbit
f6545be647
fixed reference counting bug in rpc and signal handlers
2013-08-29 14:45:08 +02:00
Unbit
d4e90f5215
added uwsgi.cache_keys function api
2013-08-23 10:43:13 +02:00
Unbit
737a7f4d51
attempt to fix spooler's body in python
2013-07-23 08:40:11 +02:00
Unbit
744e166e9d
Revert "uwsgi.is_locked raises an exception"
...
This reverts commit 5a3b93f763 .
2013-07-03 15:41:57 +02:00
Unbit
5a3b93f763
uwsgi.is_locked raises an exception
2013-07-03 14:53:55 +02:00