97 Commits

Author SHA1 Message Date
Dimitri John Ledkov
a6005624af paste_loader: allow specifying alternative section name to load. 2015-10-09 15:53:52 +01:00
Unbit
33df0dbcc9 attempt to fix #1034 2015-09-10 09:35:53 +02:00
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
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
Unbit
8e3c127e09 attempt to fix #732 2014-10-03 05:24:16 +02:00
Unbit
c7bacc6fbe first round for implementing cpython fork-server 2014-06-25 09:51:52 +02:00
Paul Egan
72c31dab7a Support for graceful reload of mule processes.
- On reload master now signals mule with HUP instead of KILL.
- Added optional call to PyOS_AfterFork to enable cpython child
  processes to override and trap HUP signal.
- Copied cursed_at/no_mercy_at pattern used with worker processes.
- Added mule_reload_mercy option.
2014-04-26 14:12:48 +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
b934ac9588 refactored sharedarea read 2013-11-30 18:30:52 +00:00
Unbit
a0082b5b98 accepting buffer is an option: --wsgi-accept-buffer 2013-10-05 12:32:49 +02:00
Unbit
717eba7ab3 implemented raw response for python 2013-09-30 15:25:00 +02:00
Unbit
23b3d7483f introducing raw mode 2013-09-30 13:43:13 +02:00
Unbit
d484acefa4 use buffer protocol in WSGI response 2013-09-30 09:25:25 +02:00
Ryan Petrello
0d9bc03c53 Add plugin support for the pecan WSGI framework (http://pecanpy.org). 2013-08-10 00:44:40 -04:00
Unbit
5bf55220d4 fixed python3 stdout/stderr line buffering 2013-05-21 14:19:33 +02:00
Unbit
00bd8cc525 improved pyshell 2013-04-06 07:44:12 +02:00
Unbit
230fa1f3bb fixed multiple interpreters support 2013-04-01 09:00:24 +02:00
Unbit
f31186a0f9 completetd first part of the new exceptions framework 2013-02-17 14:26:31 +01:00
Unbit
b5a6da5448 refactored catch_exceptions 2013-02-17 11:22:09 +01:00
Unbit
0dd2a34e22 improved websockets support 2013-02-16 13:13:04 +01:00
Unbit
d4130dbc4b first round of protocol parsers optimizations
preliminary api for language-independent body read

another step

completed body read language independent implementation

ported gevent to the new read/write api

ported websockets to the new read/write api

removed channels subsystem

removed channels subsystem

ported lua to the new read/write api

fixed post-buffering

readline is still broken

improved request body readline

very difficult test for readline()/read() combo passed

other improvements in postbuffering/read/readline

ported --http-socket to the new api

added X-Forwarded-SSL management

removed old api

more refactoring

ported the RACK plugin to the new api

ported psgi plugin to the new api

defintely removed clustering

simpified ifdel hell

simpified ifdef hell

removed useless configuration options
2013-02-03 10:38:13 +01:00
Roberto De Ioris
37e153d5de need to find a way to better manage write errors... 2013-01-20 10:32:02 +01:00
Roberto De Ioris
d6b4b8ea6e improved wsgi.input reports 2012-10-23 20:44:01 +02:00
Roberto De Ioris
7017712c6d non blocking wsgi.input in gevent 2012-10-22 15:58:36 +02:00
Roberto De Ioris
49140c3387 removed sendfile buildconf option 2012-10-22 14:07:33 +02:00
Roberto De Ioris
29ce04adce implemented reliable gevent non-blocking writes 2012-10-22 08:34:37 +02:00
roberto@quantal64
c59a3cb35a added support for PEP 405 virtualenvs 2012-10-03 20:49:58 +02:00
roberto@quantal64
c2091c52eb completed the python tracebacker 2012-06-03 10:58:34 +02:00
roberto@quantal64
c3cbcbb0d5 added --wsgi-env-behaviour for choosing the WSGI environ allocator/destroyer policy 2012-06-02 07:37:52 +02:00
roberto@precise64
9fe275141f added preliminary python tracebacker 2012-05-11 20:44:56 +02:00
roberto@precise64
b15a0a2d4b added --disable-write-exception 2012-05-05 09:30:43 +02:00
roberto@precise64
c39cf848de better implementation of start_response() 2012-05-02 09:30:37 +02:00
roberto@precise64
91273b2301 py-auto-reload-ignore 2012-04-14 11:48:27 +02:00
roberto@precise64
b7e6da3392 added --write-errors-tolerance and --write-errors-exception-only 2012-04-14 09:11:52 +02:00
roberto@sirius
57b9bdb958 better write()/writev() management 2012-04-13 11:36:43 +02:00
roberto@precise64
c2df8a099e added --python-auto-reload 2012-03-31 17:55:09 +02:00
roberto@precise64
878e9cb9ba reports microseconds in python profilers 2012-03-31 15:48:22 +02:00
roberto@precise64
f3fdec2739 completed --reload-on-exception* options 2012-03-21 20:37:03 +01:00
roberto@precise64
f9f9f25a01 added exception detection 2012-03-18 08:21:45 +01:00
roberto@centos6
10ff849ebd fixed permissions of files 2012-03-07 15:06:38 +01:00
roberto@openbsd50
c65b8ce162 various fixes 2012-03-06 15:20:25 +01:00
roberto@sirius
c72ddc9dd8 added command mode 2012-02-08 11:01:04 +01:00
roberto@oneiric64
594f67c6d7 added support for paste loggers 2012-02-06 16:29:04 +01:00
roberto@debian64
80be7385ed fixed locking 2012-02-02 09:59:48 +01:00
roberto@oneiric64
f0aa9f9fd2 another part of options refactoring 2012-01-27 17:54:31 +01:00
roberto@oneiric64
1a0e2076d5 restore termios on exit (if required) 2012-01-25 07:19:25 +01:00
roberto@oneiric64
6db3dab5ea added --pyshell-oneshot 2012-01-25 06:32:02 +01:00
roberto@oneiric64
5d9d67caa4 preliminary refactoring for multithreaded fastrouter/removed fastfuncs support 2012-01-22 11:48:13 +01:00
roberto@oneiric64
db301531d0 added uwsgi.after_req_hook 2012-01-10 20:30:46 +01:00