ashd.git
10 years agoBumped version number. py-0.5
Fredrik Tolf [Wed, 8 May 2013 02:24:48 +0000 (04:24 +0200)]
Bumped version number.

10 years agoUpdated changelog. 0.12
Fredrik Tolf [Wed, 8 May 2013 02:13:05 +0000 (04:13 +0200)]
Updated changelog.

11 years agopatplex: Added URL unquoting functionality.
Fredrik Tolf [Sat, 23 Mar 2013 05:46:36 +0000 (06:46 +0100)]
patplex: Added URL unquoting functionality.

11 years agolib: Add $HOME/.ashd/etc to the directories to search for slash-less files.
Fredrik Tolf [Sat, 23 Mar 2013 04:20:51 +0000 (05:20 +0100)]
lib: Add $HOME/.ashd/etc to the directories to search for slash-less files.

11 years agopatplex: Search for the configuration file if it contains no slashes.
Fredrik Tolf [Sat, 23 Mar 2013 04:13:28 +0000 (05:13 +0100)]
patplex: Search for the configuration file if it contains no slashes.

11 years agodoc: Fixed patplex configuration filename discrepancy.
Fredrik Tolf [Sat, 23 Mar 2013 04:00:10 +0000 (05:00 +0100)]
doc: Fixed patplex configuration filename discrepancy.

11 years agoDocument and install psendfile.
Fredrik Tolf [Sun, 3 Mar 2013 17:24:02 +0000 (18:24 +0100)]
Document and install psendfile.

11 years agoMerge branches 'block' and 'py-reserve'
Fredrik Tolf [Sun, 3 Feb 2013 02:29:45 +0000 (03:29 +0100)]
Merge branches 'block' and 'py-reserve'

11 years agoMerge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
Fredrik Tolf [Sun, 3 Feb 2013 02:16:55 +0000 (03:16 +0100)]
Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd

11 years agohtparser: Make plexwatch shut up a bit.
Fredrik Tolf [Sun, 3 Feb 2013 02:09:41 +0000 (03:09 +0100)]
htparser: Make plexwatch shut up a bit.

11 years agohtparser: Shut down root handler socket instead of closing it.
Fredrik Tolf [Sun, 3 Feb 2013 02:05:11 +0000 (03:05 +0100)]
htparser: Shut down root handler socket instead of closing it.

11 years agoexamples: setsid is now built into htparser.
Fredrik Tolf [Mon, 21 Jan 2013 06:02:32 +0000 (07:02 +0100)]
examples: setsid is now built into htparser.

11 years agopython: Updated documentation.
Fredrik Tolf [Mon, 21 Jan 2013 05:27:28 +0000 (06:27 +0100)]
python: Updated documentation.

11 years agopython: Properly abort when over request limit.
Fredrik Tolf [Sat, 19 Jan 2013 00:17:49 +0000 (01:17 +0100)]
python: Properly abort when over request limit.

11 years agopython: Added PDM support in scgi-wsgi{,3}.
Fredrik Tolf [Fri, 18 Jan 2013 22:28:17 +0000 (23:28 +0100)]
python: Added PDM support in scgi-wsgi{,3}.

11 years agopython: Make scgi-wsgi{,3} use ashd.serve.
Fredrik Tolf [Fri, 18 Jan 2013 22:04:15 +0000 (23:04 +0100)]
python: Make scgi-wsgi{,3} use ashd.serve.

11 years agopython: Removed lingering thread name.
Fredrik Tolf [Thu, 17 Jan 2013 19:51:52 +0000 (20:51 +0100)]
python: Removed lingering thread name.

11 years agopython: Converted ashd-wsgi3 as well to use ashd.serve.
Fredrik Tolf [Thu, 17 Jan 2013 07:29:24 +0000 (08:29 +0100)]
python: Converted ashd-wsgi3 as well to use ashd.serve.

11 years agopython: Added a Python3 version of ashd.serve.
Fredrik Tolf [Thu, 17 Jan 2013 07:29:06 +0000 (08:29 +0100)]
python: Added a Python3 version of ashd.serve.

11 years agopython: Use ashd.serve for ashd-wsgi.
Fredrik Tolf [Wed, 16 Jan 2013 07:11:41 +0000 (08:11 +0100)]
python: Use ashd.serve for ashd-wsgi.

11 years agopython: Added a module with abstracted tools for both ashd-wsgi and scgi-wsgi.
Fredrik Tolf [Wed, 16 Jan 2013 07:10:48 +0000 (08:10 +0100)]
python: Added a module with abstracted tools for both ashd-wsgi and scgi-wsgi.

11 years agouserplex: Use nonblocking forwarding behavior as in {dir,user}plex.
Fredrik Tolf [Tue, 15 Jan 2013 07:25:09 +0000 (08:25 +0100)]
userplex: Use nonblocking forwarding behavior as in {dir,user}plex.

11 years agolib: Preserve error properly across flog.
Fredrik Tolf [Tue, 15 Jan 2013 07:24:26 +0000 (08:24 +0100)]
lib: Preserve error properly across flog.

11 years agolib: Don't close children on mere EAGAINs, but fail and wait for them.
Fredrik Tolf [Tue, 15 Jan 2013 07:22:26 +0000 (08:22 +0100)]
lib: Don't close children on mere EAGAINs, but fail and wait for them.

11 years agolib: Use nonblocking-behavior forwarding explicitly for cf-using programs.
Fredrik Tolf [Tue, 15 Jan 2013 07:21:08 +0000 (08:21 +0100)]
lib: Use nonblocking-behavior forwarding explicitly for cf-using programs.

11 years agolib: Change the default behavior of send{fd,req} to block.
Fredrik Tolf [Tue, 15 Jan 2013 07:19:20 +0000 (08:19 +0100)]
lib: Change the default behavior of send{fd,req} to block.

11 years agolib: Added variants of sendfd and sendreq that take sendmsg flags.
Fredrik Tolf [Tue, 15 Jan 2013 07:05:22 +0000 (08:05 +0100)]
lib: Added variants of sendfd and sendreq that take sendmsg flags.

11 years agouserplex: Fixed missing-404 bug, finally.
Fredrik Tolf [Sat, 29 Dec 2012 05:09:33 +0000 (06:09 +0100)]
userplex: Fixed missing-404 bug, finally.

11 years agodoc: Establish HTTP version convention.
Fredrik Tolf [Fri, 28 Dec 2012 15:56:02 +0000 (16:56 +0100)]
doc: Establish HTTP version convention.

11 years agodoc: Mention request-body chunking in ashd(7).
Fredrik Tolf [Fri, 28 Dec 2012 15:51:53 +0000 (16:51 +0100)]
doc: Mention request-body chunking in ashd(7).

11 years agodoc: Refined htparser shutdown description.
Fredrik Tolf [Fri, 28 Dec 2012 06:25:40 +0000 (07:25 +0100)]
doc: Refined htparser shutdown description.

11 years agoMerge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
Fredrik Tolf [Fri, 28 Dec 2012 06:20:28 +0000 (07:20 +0100)]
Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd

11 years agodoc: Describe htparser shutdown behavior.
Fredrik Tolf [Fri, 28 Dec 2012 06:19:40 +0000 (07:19 +0100)]
doc: Describe htparser shutdown behavior.

11 years agohtparser: Improved shutdown behavior further.
Fredrik Tolf [Fri, 28 Dec 2012 06:19:28 +0000 (07:19 +0100)]
htparser: Improved shutdown behavior further.

11 years agolib: Added the bufdel macro.
Fredrik Tolf [Fri, 28 Dec 2012 06:14:12 +0000 (07:14 +0100)]
lib: Added the bufdel macro.

11 years agohtparser: More well-defined shutdown behavior.
Fredrik Tolf [Fri, 28 Dec 2012 06:00:27 +0000 (07:00 +0100)]
htparser: More well-defined shutdown behavior.

11 years agolib: Gave ioloop the ability to exit
Fredrik Tolf [Fri, 28 Dec 2012 05:55:12 +0000 (06:55 +0100)]
lib: Gave ioloop the ability to exit

There are race issues with signaling, however. It should be possible to
call an ioloop variant that uses pselect or similar.

11 years agoMerge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
Fredrik Tolf [Thu, 27 Dec 2012 17:42:17 +0000 (18:42 +0100)]
Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd

11 years agocall*cgi, python: Added symmetrical {SERVER,REMOTE}_{ADDR,PORT} parameters.
Fredrik Tolf [Thu, 27 Dec 2012 17:41:21 +0000 (18:41 +0100)]
call*cgi, python: Added symmetrical {SERVER,REMOTE}_{ADDR,PORT} parameters.

11 years agohtparser: Fixed SSL listening bug.
Fredrik Tolf [Thu, 27 Dec 2012 07:31:43 +0000 (08:31 +0100)]
htparser: Fixed SSL listening bug.

11 years agoMerge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
Fredrik Tolf [Thu, 27 Dec 2012 07:15:26 +0000 (08:15 +0100)]
Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd

11 years agohtparser: Put root handler in a new session regardless of daemonization.
Fredrik Tolf [Thu, 27 Dec 2012 07:15:14 +0000 (08:15 +0100)]
htparser: Put root handler in a new session regardless of daemonization.

11 years agohtparser: Be more tolerant to broken clients.
Fredrik Tolf [Wed, 26 Dec 2012 02:24:57 +0000 (03:24 +0100)]
htparser: Be more tolerant to broken clients.

11 years agohtparser: Support chunked request-bodies.
Fredrik Tolf [Wed, 19 Dec 2012 04:28:26 +0000 (05:28 +0100)]
htparser: Support chunked request-bodies.

11 years agopython: Added a simple function for doing directory-local "imports".
Fredrik Tolf [Sat, 1 Sep 2012 04:36:20 +0000 (06:36 +0200)]
python: Added a simple function for doing directory-local "imports".

11 years agopython: Fixed typo.
Fredrik Tolf [Thu, 30 Aug 2012 03:13:15 +0000 (05:13 +0200)]
python: Fixed typo.

11 years agopython: Remove HTTP_CONTENT_{TYPE,LENGTH} from WSGI environment.
Fredrik Tolf [Tue, 28 Aug 2012 00:59:57 +0000 (02:59 +0200)]
python: Remove HTTP_CONTENT_{TYPE,LENGTH} from WSGI environment.

Although not strictly required by the CGI specification, many programs
and libraries seem to require it.

11 years agohtparser: Made HTTP version recognition case-independent.
Fredrik Tolf [Sun, 19 Aug 2012 06:11:16 +0000 (08:11 +0200)]
htparser: Made HTTP version recognition case-independent.

11 years agopython: Improved error handling and logging in ashd-wsgi.
Fredrik Tolf [Thu, 16 Aug 2012 04:30:25 +0000 (06:30 +0200)]
python: Improved error handling and logging in ashd-wsgi.

11 years agoBumped version number.
Fredrik Tolf [Thu, 16 Aug 2012 04:07:20 +0000 (06:07 +0200)]
Bumped version number.

11 years agoUpdated ChangeLog. 0.11
Fredrik Tolf [Thu, 16 Aug 2012 03:54:23 +0000 (05:54 +0200)]
Updated ChangeLog.

11 years agodoc: Fixed formatting error.
Fredrik Tolf [Wed, 15 Aug 2012 23:55:12 +0000 (01:55 +0200)]
doc: Fixed formatting error.

11 years agodirplex: Added a capture option to ignore captures of the root directory.
Fredrik Tolf [Wed, 15 Aug 2012 23:51:11 +0000 (01:51 +0200)]
dirplex: Added a capture option to ignore captures of the root directory.

11 years agoAdded the `httimed' program.
Fredrik Tolf [Wed, 8 Aug 2012 17:19:24 +0000 (19:19 +0200)]
Added the `httimed' program.

11 years agopython: Fixed log header for scgi-wsgi.
Fredrik Tolf [Wed, 8 Aug 2012 06:48:27 +0000 (08:48 +0200)]
python: Fixed log header for scgi-wsgi.

11 years agopython: Added logging initialization to scgi-wsgi.
Fredrik Tolf [Wed, 8 Aug 2012 06:40:34 +0000 (08:40 +0200)]
python: Added logging initialization to scgi-wsgi.

11 years agopython: Added some SCGI fixes apparently necessary for Jython.
Fredrik Tolf [Wed, 8 Aug 2012 06:37:51 +0000 (08:37 +0200)]
python: Added some SCGI fixes apparently necessary for Jython.

11 years agopython: Added more useful logging to wsgidir.
Fredrik Tolf [Mon, 16 Jul 2012 06:11:42 +0000 (08:11 +0200)]
python: Added more useful logging to wsgidir.

11 years agopython: Handle errors when loading chained modules more properly.
Fredrik Tolf [Mon, 16 Jul 2012 06:11:20 +0000 (08:11 +0200)]
python: Handle errors when loading chained modules more properly.

11 years agopython: Added XBitHack-style caching to SSI handler.
Fredrik Tolf [Mon, 16 Jul 2012 04:59:45 +0000 (06:59 +0200)]
python: Added XBitHack-style caching to SSI handler.

11 years agopython: Added HTTP date formatting functions to ashd.wsgiutil.
Fredrik Tolf [Mon, 16 Jul 2012 04:58:36 +0000 (06:58 +0200)]
python: Added HTTP date formatting functions to ashd.wsgiutil.

11 years agopython: Configure logging in ashd-wsgi{,3}.
Fredrik Tolf [Sat, 14 Jul 2012 20:00:17 +0000 (22:00 +0200)]
python: Configure logging in ashd-wsgi{,3}.

11 years agopython: Rewrote SSI handler as a reusable module, and in Python3.
Fredrik Tolf [Sat, 14 Jul 2012 19:59:39 +0000 (21:59 +0200)]
python: Rewrote SSI handler as a reusable module, and in Python3.

11 years agoaccesslog: Fixed quoting sign-extension.
Fredrik Tolf [Tue, 19 Jun 2012 18:39:32 +0000 (20:39 +0200)]
accesslog: Fixed quoting sign-extension.

11 years agopsendfile: Don't free contype if it's NULL.
Fredrik Tolf [Tue, 5 Jun 2012 00:10:52 +0000 (02:10 +0200)]
psendfile: Don't free contype if it's NULL.

11 years agoAdded a preliminary version of a psendfile program.
Fredrik Tolf [Mon, 4 Jun 2012 17:08:33 +0000 (19:08 +0200)]
Added a preliminary version of a psendfile program.

11 years agolib: Made simpleerror callable with stdio handles as well as FDs.
Fredrik Tolf [Mon, 4 Jun 2012 17:02:41 +0000 (19:02 +0200)]
lib: Made simpleerror callable with stdio handles as well as FDs.

11 years agopython: Fixed some docstring typos.
Fredrik Tolf [Mon, 21 May 2012 03:00:20 +0000 (05:00 +0200)]
python: Fixed some docstring typos.

11 years agopython: Added a WSGI validation mode to ashd.wsgidir.
Fredrik Tolf [Sun, 20 May 2012 03:08:51 +0000 (05:08 +0200)]
python: Added a WSGI validation mode to ashd.wsgidir.

11 years agoexamples: Added an example for wsgidir usage.
Fredrik Tolf [Sun, 20 May 2012 02:31:52 +0000 (04:31 +0200)]
examples: Added an example for wsgidir usage.

11 years agodoc: Fixed typo.
Fredrik Tolf [Sun, 13 May 2012 07:30:15 +0000 (09:30 +0200)]
doc: Fixed typo.

11 years agodoc: Fixed typo.
Fredrik Tolf [Sun, 13 May 2012 07:19:28 +0000 (09:19 +0200)]
doc: Fixed typo.

11 years agodoc: Typo fixes and other documentation improvements.
Fredrik Tolf [Sun, 13 May 2012 07:09:12 +0000 (09:09 +0200)]
doc: Typo fixes and other documentation improvements.

11 years agouserplex: Corrected opening of /dev/null.
Fredrik Tolf [Sun, 13 May 2012 06:09:48 +0000 (08:09 +0200)]
userplex: Corrected opening of /dev/null.

11 years agodoc: Clarified the persistent handler convention slightly.
Fredrik Tolf [Sun, 13 May 2012 04:38:25 +0000 (06:38 +0200)]
doc: Clarified the persistent handler convention slightly.

11 years agodoc: Fixed typo.
Fredrik Tolf [Sun, 13 May 2012 04:06:59 +0000 (06:06 +0200)]
doc: Fixed typo.

12 years agoWarn for core dumps in various places.
Fredrik Tolf [Tue, 20 Mar 2012 23:32:49 +0000 (00:32 +0100)]
Warn for core dumps in various places.

12 years agocallcgi: Don't mass-close child FDs.
Fredrik Tolf [Tue, 20 Mar 2012 23:09:37 +0000 (00:09 +0100)]
callcgi: Don't mass-close child FDs.

12 years agocallcgi: Properly wait for the handler process to exit.
Fredrik Tolf [Thu, 8 Mar 2012 23:57:36 +0000 (00:57 +0100)]
callcgi: Properly wait for the handler process to exit.

12 years agoMerge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
Fredrik Tolf [Mon, 23 Jan 2012 07:02:21 +0000 (08:02 +0100)]
Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd

12 years agodirplex: Match pathname directives relative to the config path.
Fredrik Tolf [Mon, 23 Jan 2012 07:01:53 +0000 (08:01 +0100)]
dirplex: Match pathname directives relative to the config path.

12 years agodirplex: Correct config resolution for base directory.
Fredrik Tolf [Mon, 23 Jan 2012 05:59:34 +0000 (06:59 +0100)]
dirplex: Correct config resolution for base directory.

12 years agopython: Use python3 super() correctly.
Fredrik Tolf [Thu, 22 Dec 2011 04:25:21 +0000 (05:25 +0100)]
python: Use python3 super() correctly.

12 years agopython: Pass client address and port in perf request info.
Fredrik Tolf [Thu, 22 Dec 2011 04:24:36 +0000 (05:24 +0100)]
python: Pass client address and port in perf request info.

12 years agopython: Fixed exception masking bug in ashd-wsgi.
Fredrik Tolf [Wed, 21 Dec 2011 06:27:23 +0000 (07:27 +0100)]
python: Fixed exception masking bug in ashd-wsgi.

12 years agoMerge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
Fredrik Tolf [Fri, 16 Dec 2011 05:49:12 +0000 (06:49 +0100)]
Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd

12 years agopython: Support PDM in ashd-wsgi.
Fredrik Tolf [Fri, 16 Dec 2011 05:47:03 +0000 (06:47 +0100)]
python: Support PDM in ashd-wsgi.

12 years agodoc: Use `xset content-type' for the dirplex sendfile example.
Fredrik Tolf [Wed, 14 Dec 2011 14:00:34 +0000 (15:00 +0100)]
doc: Use `xset content-type' for the dirplex sendfile example.

12 years agodoc: Fixed a couple of misses.
Fredrik Tolf [Tue, 13 Dec 2011 20:42:40 +0000 (21:42 +0100)]
doc: Fixed a couple of misses.

12 years agoetc: Use the send handler from dirplex.d in apache-compat.
Fredrik Tolf [Tue, 13 Dec 2011 19:09:16 +0000 (20:09 +0100)]
etc: Use the send handler from dirplex.d in apache-compat.

12 years agoetc: Use xset to pass content-type to sendfile.
Fredrik Tolf [Tue, 13 Dec 2011 18:58:30 +0000 (19:58 +0100)]
etc: Use xset to pass content-type to sendfile.

12 years agodirplex, patplex: Added a cosmetical `xset' directive to supplant `set'.
Fredrik Tolf [Tue, 13 Dec 2011 18:50:52 +0000 (19:50 +0100)]
dirplex, patplex: Added a cosmetical `xset' directive to supplant `set'.

12 years agoBumped version numbers.
Fredrik Tolf [Tue, 13 Dec 2011 18:19:47 +0000 (19:19 +0100)]
Bumped version numbers.

12 years agoUpdated ChangeLog. 0.10 py-0.4
Fredrik Tolf [Tue, 13 Dec 2011 18:12:23 +0000 (19:12 +0100)]
Updated ChangeLog.

12 years agopython: Fixed wsgidir caching problem.
Fredrik Tolf [Tue, 13 Dec 2011 18:00:13 +0000 (19:00 +0100)]
python: Fixed wsgidir caching problem.

12 years agopython: Include `chain' in __all__ of ashd.wsgidir.
Fredrik Tolf [Tue, 13 Dec 2011 06:01:22 +0000 (07:01 +0100)]
python: Include `chain' in __all__ of ashd.wsgidir.

12 years agopython: Fixed doc typo.
Fredrik Tolf [Tue, 13 Dec 2011 05:53:57 +0000 (06:53 +0100)]
python: Fixed doc typo.

12 years agopython: Use an X-Ash-Python-Handler added header for dispatching in wsgidir.
Fredrik Tolf [Tue, 13 Dec 2011 05:50:09 +0000 (06:50 +0100)]
python: Use an X-Ash-Python-Handler added header for dispatching in wsgidir.

12 years agopython: Cleaned up dispatching in wsgidir.
Fredrik Tolf [Tue, 13 Dec 2011 05:22:43 +0000 (06:22 +0100)]
python: Cleaned up dispatching in wsgidir.

12 years agopython: Use importlib for python3.
Fredrik Tolf [Tue, 13 Dec 2011 04:56:14 +0000 (05:56 +0100)]
python: Use importlib for python3.