Dave Shawley
e6ef43c050
Deprecate calling run without a logging config.
2019-09-03 07:29:20 -04:00
Dave Shawley
b7b787ee31
Add _ShutdownHandler tests.
2019-09-03 07:05:09 -04:00
Dave Shawley
3c71ae0313
Add missing tests for top-level
2019-09-03 07:05:09 -04:00
Dave Shawley
cd478d0a3d
Add sprockets.http.testing
2019-09-02 08:09:34 -04:00
Dave Shawley
7991f99807
Make shutdown timings configurable.
2019-09-02 08:01:09 -04:00
Andrew Rabert
a981861bf1
Use python 3 super
2018-11-26 19:24:30 -05:00
Andrew Rabert
78e063963d
Remove mock and update tests
2018-11-26 19:03:37 -05:00
Andrew Rabert
234fb6d479
Support only tornado>=5.0
...
- Drop support for all versions of tornado prior to 5.0. This negates
the need for version-aware conditionals that previous existed.
- Update tox to test Tornado 5.0 and the unpinned latest version.
2018-11-26 19:03:37 -05:00
Andrew Rabert
74aaf7bf01
Add support for Tornado >= 5
2018-11-26 19:03:21 -05:00
Gavin M. Roy
7ef88a34ae
Merge pull request #19 from nvllsvm/master
...
Avoid RecursionError in test
2018-01-29 11:26:43 -05:00
Dave Shawley
fb909088d9
Enable reuse_port option to HTTPServer.bind.
...
This makes solutions that restart the process (e.g., envconsul) work
properly. Without port reuse, you will get a very unpleasant "port
already in use" when the service restarts.
This requires Tornado >= 4.4
2018-01-28 14:32:41 -05:00
Brian Korty
4109dd3885
Support max_body_size and max_buffer_size.
...
Allow max_body_size and max_buffer_size settings to be passed into the
underlying Tornado HTTPServer to override the default settings.
2018-01-24 20:07:12 -05:00
Andrew Rabert
4181abc542
Avoid RecursionError in test
...
A sleep value of 0.05 resulted in a RecursionError in some environments.
2017-06-08 17:01:51 -04:00
Dave Shawley
d7370ab5e6
Rename CallbackManager.run to start.
...
It was too easy to confuse this with Runner.run
2016-11-03 07:43:23 -04:00
Dave Shawley
531b796559
Add sprockets.http.app module.
...
This module separates out the application state management from the
mechanics of running the application. The former is destined for a
sub-class of tornado.web.Application (as app.Application) and the
latter remains in sprockets.http.runner.
2016-11-01 22:01:27 -04:00
Dave Shawley
2f263b0997
Add `httprun
` distutils command.
2016-06-13 23:23:17 -04:00
Gavin M. Roy
d17c668f83
Add async shutdown support an on_start callbacks
2016-03-10 17:10:31 -05:00
Dave Shawley
53b09b2e32
tests: Add comprehensive tests for Runner class.
2016-01-28 07:53:01 -05:00
Dave Shawley
03e85b440c
Call sys.exit() when a before_run callback raises an exception.
2016-01-28 07:53:01 -05:00
Dave Shawley
e906e6f33e
tests: Add callback exception testing.
2016-01-28 07:08:50 -05:00
Dave Shawley
5ba9e5fc59
tests: Refactor callback testing to consolidate code.
2016-01-28 07:02:06 -05:00
Dave Shawley
a1ba8874f6
Add support for `before_run
` callbacks.
2016-01-27 18:24:02 -05:00
Dave Shawley
d8253fcef2
tests: Add tests for the shutdown callback.
2016-01-27 16:02:45 -05:00
Dave Shawley
92ca0bf70e
Add log_config parameter to sprockets.http.run.
2015-12-10 10:48:25 -05:00
Dave Shawley
2d043ff752
Move _get_logging_config into sprockets.http.
2015-12-10 10:44:52 -05:00
Dave Shawley
557989399c
Move logging.config.dictConfig into http.run.
2015-12-10 10:41:59 -05:00
Dave Shawley
2861d8ef93
Add tests for sprockets.http.run.
2015-12-10 10:22:10 -05:00
Gavin M. Roy
f028723e45
Use mediatype.ContentMixin if its also extended
2015-11-20 14:14:39 -05:00
Dave Shawley
a7c8d95847
ErrorWriter: Add support for format_traceback.
2015-11-20 07:25:05 -05:00
Dave Shawley
cdb655be1e
Add sprockets.http.mixins.ErrorWriter.
2015-11-19 17:29:07 -05:00
Dave Shawley
fea85275c4
tests: Rename ErrorWriterTests.
2015-11-19 11:54:23 -05:00
Dave Shawley
702c0a112f
Add support for log_message
kwarg.
2015-11-19 11:51:34 -05:00
Dave Shawley
31feab1275
ErrorLogger: Handle tornado.web.HTTPError.
2015-11-19 08:02:47 -05:00
Dave Shawley
704c6d34d8
Add LoggingHandler and ErrorLogger mixins.
2015-11-18 16:15:37 -05:00