ashd.git
10 years agocallfcgi: Use the library mtio pipes instead of kernel pipes.
Fredrik Tolf [Mon, 3 Mar 2014 00:08:05 +0000 (01:08 +0100)]
callfcgi: Use the library mtio pipes instead of kernel pipes.

10 years agolib: Implemented internal mtio pipes.
Fredrik Tolf [Mon, 3 Mar 2014 00:07:37 +0000 (01:07 +0100)]
lib: Implemented internal mtio pipes.

10 years agolib: Fixed lingering stdchild bug.
Fredrik Tolf [Sun, 2 Mar 2014 09:26:05 +0000 (10:26 +0100)]
lib: Fixed lingering stdchild bug.

10 years agolib: Fixed uncompiled bugs in the funopen path.
Fredrik Tolf [Sun, 2 Mar 2014 09:25:47 +0000 (10:25 +0100)]
lib: Fixed uncompiled bugs in the funopen path.

10 years agolib: Introduced a portable abstraction layer for custom stdio streams.
Fredrik Tolf [Sun, 2 Mar 2014 09:17:48 +0000 (10:17 +0100)]
lib: Introduced a portable abstraction layer for custom stdio streams.

10 years agoMerge branch 'master' of fludd.seatribe.se:/usr/local/src/ashd
Fredrik Tolf [Sun, 2 Mar 2014 00:26:03 +0000 (01:26 +0100)]
Merge branch 'master' of fludd.seatribe.se:/usr/local/src/ashd

10 years agodirplex: Actually allow zero-argument index-file, as documented.
Fredrik Tolf [Sun, 2 Mar 2014 00:25:34 +0000 (01:25 +0100)]
dirplex: Actually allow zero-argument index-file, as documented.

10 years agoUpdated changelog.
Fredrik Tolf [Sat, 1 Mar 2014 09:09:48 +0000 (10:09 +0100)]
Updated changelog.

10 years agobuild: Remove GNU-make extensions from doc/Makefile.
Fredrik Tolf [Sat, 1 Mar 2014 08:23:37 +0000 (09:23 +0100)]
build: Remove GNU-make extensions from doc/Makefile.

10 years agolib: Added a kqueue mtio implementation.
Fredrik Tolf [Sat, 1 Mar 2014 06:01:33 +0000 (07:01 +0100)]
lib: Added a kqueue mtio implementation.

10 years agobuild: Use AS_HELP_STRING.
Fredrik Tolf [Fri, 28 Feb 2014 01:56:32 +0000 (02:56 +0100)]
build: Use AS_HELP_STRING.

10 years agolib: Removed nested functions from all required parts of the code.
Fredrik Tolf [Thu, 27 Feb 2014 08:50:35 +0000 (09:50 +0100)]
lib: Removed nested functions from all required parts of the code.

10 years agolib: Added a BSD mtio implementation.
Fredrik Tolf [Thu, 27 Feb 2014 08:50:06 +0000 (09:50 +0100)]
lib: Added a BSD mtio implementation.

10 years agolib: Modularized mtio implementation.
Fredrik Tolf [Thu, 27 Feb 2014 08:45:27 +0000 (09:45 +0100)]
lib: Modularized mtio implementation.

10 years agobuild: Modernized autoconf/automake initialization.
Fredrik Tolf [Thu, 27 Feb 2014 08:45:04 +0000 (09:45 +0100)]
build: Modernized autoconf/automake initialization.

10 years agocall[fs]cgi: Fixed wrong header usage.
Fredrik Tolf [Thu, 27 Feb 2014 06:46:24 +0000 (07:46 +0100)]
call[fs]cgi: Fixed wrong header usage.

10 years agoaccesslog: Fixed non-ASCII logging bug again.
Fredrik Tolf [Thu, 27 Feb 2014 06:44:50 +0000 (07:44 +0100)]
accesslog: Fixed non-ASCII logging bug again.

10 years agohtextauth: Added a simple authenticator program for example purposes.
Fredrik Tolf [Thu, 13 Feb 2014 03:03:46 +0000 (04:03 +0100)]
htextauth: Added a simple authenticator program for example purposes.

10 years agodoc: Documented httrcall.
Fredrik Tolf [Thu, 13 Feb 2014 02:37:10 +0000 (03:37 +0100)]
doc: Documented httrcall.

10 years agoAdded the `httrcall' program.
Fredrik Tolf [Thu, 13 Feb 2014 02:29:44 +0000 (03:29 +0100)]
Added the `httrcall' program.

10 years agocallcgi: Made callcgi better at running more arbitrary programs.
Fredrik Tolf [Thu, 13 Feb 2014 02:29:00 +0000 (03:29 +0100)]
callcgi: Made callcgi better at running more arbitrary programs.

10 years agopython: Fixed typo.
Fredrik Tolf [Fri, 7 Feb 2014 02:55:50 +0000 (03:55 +0100)]
python: Fixed typo.

10 years agopython: Ensure request bytearray is explicitly converted to str on Jython.
Fredrik Tolf [Fri, 7 Feb 2014 02:54:38 +0000 (03:54 +0100)]
python: Ensure request bytearray is explicitly converted to str on Jython.

10 years agopython: Updated documentation.
Fredrik Tolf [Sun, 12 Jan 2014 06:44:21 +0000 (07:44 +0100)]
python: Updated documentation.

10 years agopython: Removed the -l option from the usage message, since it's only for compatiblity.
Fredrik Tolf [Sun, 12 Jan 2014 05:49:56 +0000 (06:49 +0100)]
python: Removed the -l option from the usage message, since it's only for compatiblity.

10 years agodirplex: Inverted the default root capture behaviour and changed its flag.
Fredrik Tolf [Sat, 11 Jan 2014 09:27:05 +0000 (10:27 +0100)]
dirplex: Inverted the default root capture behaviour and changed its flag.

10 years agodoc: Fixed typo.
Fredrik Tolf [Sat, 11 Jan 2014 09:17:29 +0000 (10:17 +0100)]
doc: Fixed typo.

10 years agodoc: Updated dirplex 404 handling.
Fredrik Tolf [Sat, 11 Jan 2014 09:16:26 +0000 (10:16 +0100)]
doc: Updated dirplex 404 handling.

10 years agodirplex: Improved 404 handling.
Fredrik Tolf [Sat, 11 Jan 2014 05:15:35 +0000 (06:15 +0100)]
dirplex: Improved 404 handling.

10 years agolib: Log EGAINs again, but attempt to do so sparingly.
Fredrik Tolf [Mon, 6 Jan 2014 16:08:41 +0000 (17:08 +0100)]
lib: Log EGAINs again, but attempt to do so sparingly.

10 years agopython: Fixed the real thread-starting problem.
Fredrik Tolf [Mon, 6 Jan 2014 06:09:13 +0000 (07:09 +0100)]
python: Fixed the real thread-starting problem.

10 years agopython: Added a safety timeout in the new-thread wait loop.
Fredrik Tolf [Mon, 6 Jan 2014 05:26:45 +0000 (06:26 +0100)]
python: Added a safety timeout in the new-thread wait loop.

10 years agoMerge branch 'py-reserve'
Fredrik Tolf [Mon, 6 Jan 2014 03:00:02 +0000 (04:00 +0100)]
Merge branch 'py-reserve'

10 years agopython: Back-ported the new request handling to Python2.
Fredrik Tolf [Mon, 6 Jan 2014 02:53:35 +0000 (03:53 +0100)]
python: Back-ported the new request handling to Python2.

10 years agopython: Keep a copy of the real socket for Python2 as in Python3.
Fredrik Tolf [Mon, 6 Jan 2014 02:53:14 +0000 (03:53 +0100)]
python: Keep a copy of the real socket for Python2 as in Python3.

10 years agopython: Cleaned up a few uglies.
Fredrik Tolf [Mon, 6 Jan 2014 02:52:53 +0000 (03:52 +0100)]
python: Cleaned up a few uglies.

10 years agopython: Catch some previously uncaught errors in rplex handler.
Fredrik Tolf [Sun, 5 Jan 2014 22:42:39 +0000 (23:42 +0100)]
python: Catch some previously uncaught errors in rplex handler.

10 years agopython: Gather handler names better.
Fredrik Tolf [Sun, 5 Jan 2014 21:31:44 +0000 (22:31 +0100)]
python: Gather handler names better.

10 years agopython: Removed threadpool handler again.
Fredrik Tolf [Sun, 5 Jan 2014 21:26:59 +0000 (22:26 +0100)]
python: Removed threadpool handler again.

It seems to have lost all significance when freethread gained limiting
abilities.

10 years agopython: Added request limiter to rplex handler.
Fredrik Tolf [Sun, 5 Jan 2014 21:26:17 +0000 (22:26 +0100)]
python: Added request limiter to rplex handler.

10 years agopython: Abort instead of exit on rplex response-thread errors.
Fredrik Tolf [Sun, 5 Jan 2014 21:18:19 +0000 (22:18 +0100)]
python: Abort instead of exit on rplex response-thread errors.

10 years agopython: Added an early version of a response-multiplexing handler.
Fredrik Tolf [Sun, 5 Jan 2014 20:26:04 +0000 (21:26 +0100)]
python: Added an early version of a response-multiplexing handler.

10 years agopython: Added a simple, non-threaded handler.
Fredrik Tolf [Sun, 5 Jan 2014 15:04:14 +0000 (16:04 +0100)]
python: Added a simple, non-threaded handler.

10 years agodirplex, patplex: Emit more helpful error message on EAGAIN from child.
Fredrik Tolf [Sun, 5 Jan 2014 11:30:06 +0000 (12:30 +0100)]
dirplex, patplex: Emit more helpful error message on EAGAIN from child.

10 years agolib: Don't log mere EAGAINs.
Fredrik Tolf [Sun, 5 Jan 2014 11:15:46 +0000 (12:15 +0100)]
lib: Don't log mere EAGAINs.

10 years agolib: Properly use error from the restarted child, in the event of restarting.
Fredrik Tolf [Sun, 5 Jan 2014 11:15:26 +0000 (12:15 +0100)]
lib: Properly use error from the restarted child, in the event of restarting.

10 years agopython: Emulate the previous `-l' option to ashd-wsgi3.
Fredrik Tolf [Sun, 5 Jan 2014 11:02:16 +0000 (12:02 +0100)]
python: Emulate the previous `-l' option to ashd-wsgi3.

10 years agopython: Added an abort timeout for the freethread handler.
Fredrik Tolf [Sun, 5 Jan 2014 10:57:53 +0000 (11:57 +0100)]
python: Added an abort timeout for the freethread handler.

10 years agopython: Added an optional request limiter for freethread.
Fredrik Tolf [Sun, 5 Jan 2014 10:45:14 +0000 (11:45 +0100)]
python: Added an optional request limiter for freethread.

10 years agopython: Added command-line parsing of request handler and its arguments.
Fredrik Tolf [Sun, 5 Jan 2014 09:31:27 +0000 (10:31 +0100)]
python: Added command-line parsing of request handler and its arguments.

10 years agopython: Added blocking thread-pool handler.
Fredrik Tolf [Sun, 5 Jan 2014 09:05:06 +0000 (10:05 +0100)]
python: Added blocking thread-pool handler.

10 years agopython: Fixed scgi-wsgi3 input handling bug.
Fredrik Tolf [Sun, 5 Jan 2014 09:04:42 +0000 (10:04 +0100)]
python: Fixed scgi-wsgi3 input handling bug.

10 years agopython: Always properly close request handlers when exiting.
Fredrik Tolf [Sun, 5 Jan 2014 08:57:51 +0000 (09:57 +0100)]
python: Always properly close request handlers when exiting.

10 years agopython: Converted scgi-wsgi3 as well to use modular handling.
Fredrik Tolf [Sun, 5 Jan 2014 07:32:44 +0000 (08:32 +0100)]
python: Converted scgi-wsgi3 as well to use modular handling.

10 years agopython: Start rewriting WSGI handlers with modular handling models.
Fredrik Tolf [Sun, 5 Jan 2014 07:20:25 +0000 (08:20 +0100)]
python: Start rewriting WSGI handlers with modular handling models.

10 years agoetc: Added an explicit .wsgi2 extension in the Python configuration.
Fredrik Tolf [Thu, 2 Jan 2014 07:43:24 +0000 (08:43 +0100)]
etc: Added an explicit .wsgi2 extension in the Python configuration.

10 years agolib: Added environment-variable expansion for stdchild arguments.
Fredrik Tolf [Thu, 2 Jan 2014 07:19:41 +0000 (08:19 +0100)]
lib: Added environment-variable expansion for stdchild arguments.

10 years agolib: Moved default status strings from call[fs]cgi to library.
Fredrik Tolf [Thu, 2 Jan 2014 06:27:08 +0000 (07:27 +0100)]
lib: Moved default status strings from call[fs]cgi to library.

10 years agoetc: Added a default configuration file for Python handling.
Fredrik Tolf [Thu, 2 Jan 2014 06:21:29 +0000 (07:21 +0100)]
etc: Added a default configuration file for Python handling.

10 years agocallcgi: Don't log errors about broken pipes.
Fredrik Tolf [Sat, 28 Dec 2013 01:40:20 +0000 (02:40 +0100)]
callcgi: Don't log errors about broken pipes.

10 years agodoc: Fixed typo.
Fredrik Tolf [Tue, 24 Sep 2013 07:03:41 +0000 (09:03 +0200)]
doc: Fixed typo.

10 years agodoc: Fixed comma usage.
Fredrik Tolf [Tue, 24 Sep 2013 06:54:54 +0000 (08:54 +0200)]
doc: Fixed comma usage.

10 years agodoc: More consistent grammar.
Fredrik Tolf [Tue, 24 Sep 2013 06:19:38 +0000 (08:19 +0200)]
doc: More consistent grammar.

10 years agodoc: Fixed typo.
Fredrik Tolf [Tue, 24 Sep 2013 06:05:12 +0000 (08:05 +0200)]
doc: Fixed typo.

10 years agodoc: Fixed typo.
Fredrik Tolf [Tue, 24 Sep 2013 06:01:44 +0000 (08:01 +0200)]
doc: Fixed typo.

10 years agopatplex: Fixed regex compilation bug.
Fredrik Tolf [Sun, 11 Aug 2013 21:36:42 +0000 (23:36 +0200)]
patplex: Fixed regex compilation bug.

10 years agolib: Fixed stdinit bug.
Fredrik Tolf [Sun, 14 Jul 2013 06:05:49 +0000 (08:05 +0200)]
lib: Fixed stdinit bug.

10 years agolib: Added ability to set environment variables in stdchildren.
Fredrik Tolf [Sun, 14 Jul 2013 05:56:39 +0000 (07:56 +0200)]
lib: Added ability to set environment variables in stdchildren.

10 years agoaccesslog: Explicitly close logfile when exiting.
Fredrik Tolf [Sun, 9 Jun 2013 02:02:08 +0000 (04:02 +0200)]
accesslog: Explicitly close logfile when exiting.

10 years agoBumped python version numbers.
Fredrik Tolf [Wed, 8 May 2013 02:35:50 +0000 (04:35 +0200)]
Bumped python version numbers.

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).