ashd.git
8 years agolib: Fixed mblock bug for epoll.
Fredrik Tolf [Wed, 18 May 2016 03:22:18 +0000 (05:22 +0200)]
lib: Fixed mblock bug for epoll.

8 years agohtparser: Fixed bad size_t.
Fredrik Tolf [Wed, 18 May 2016 03:04:44 +0000 (05:04 +0200)]
htparser: Fixed bad size_t.

8 years agoaccesslog: Pass file descriptors through response.
Fredrik Tolf [Wed, 18 May 2016 01:04:11 +0000 (03:04 +0200)]
accesslog: Pass file descriptors through response.

8 years agohtparser: Added support for full-duplex requests.
Fredrik Tolf [Wed, 18 May 2016 01:03:43 +0000 (03:03 +0200)]
htparser: Added support for full-duplex requests.

8 years agolib: Added support for blocking on multiple file descriptors.
Fredrik Tolf [Wed, 18 May 2016 01:02:23 +0000 (03:02 +0200)]
lib: Added support for blocking on multiple file descriptors.

Lacking support for kqueue for now.

8 years agolib: Added mtio ability to pass file descriptors over streams.
Fredrik Tolf [Mon, 16 May 2016 02:45:29 +0000 (04:45 +0200)]
lib: Added mtio ability to pass file descriptors over streams.

8 years agolib: Added bufio I/O-less copy function.
Fredrik Tolf [Mon, 16 May 2016 02:31:03 +0000 (04:31 +0200)]
lib: Added bufio I/O-less copy function.

8 years agoaccesslog: Fail as soon as possible on broken channels.
Fredrik Tolf [Sat, 14 May 2016 01:13:58 +0000 (03:13 +0200)]
accesslog: Fail as soon as possible on broken channels.

8 years agolib: Report as many errors as possible from biowritesome.
Fredrik Tolf [Sat, 14 May 2016 01:13:25 +0000 (03:13 +0200)]
lib: Report as many errors as possible from biowritesome.

8 years agohtparser: Use bufio instead of stdio for greater responsiveness.
Fredrik Tolf [Sun, 8 May 2016 02:11:46 +0000 (04:11 +0200)]
htparser: Use bufio instead of stdio for greater responsiveness.

8 years agolib: Fixed another bufio bug.
Fredrik Tolf [Sun, 1 May 2016 02:57:51 +0000 (04:57 +0200)]
lib: Fixed another bufio bug.

8 years agolib: Commit missing bufio include.
Fredrik Tolf [Sun, 1 May 2016 01:37:29 +0000 (03:37 +0200)]
lib: Commit missing bufio include.

8 years agolib: Fixed some bufio bugs.
Fredrik Tolf [Tue, 26 Apr 2016 03:21:33 +0000 (05:21 +0200)]
lib: Fixed some bufio bugs.

8 years agoaccesslog: Use bufio for filtering instead of stdio.
Fredrik Tolf [Mon, 25 Apr 2016 13:09:42 +0000 (15:09 +0200)]
accesslog: Use bufio for filtering instead of stdio.

8 years agolib: Added bufio variants of parseresponse/parseheaders/writeresp.
Fredrik Tolf [Mon, 25 Apr 2016 13:09:22 +0000 (15:09 +0200)]
lib: Added bufio variants of parseresponse/parseheaders/writeresp.

8 years agolib: Compile bufio.
Fredrik Tolf [Mon, 25 Apr 2016 13:08:41 +0000 (15:08 +0200)]
lib: Compile bufio.

8 years agolib: Added mtio-driven bufio implementation.
Fredrik Tolf [Mon, 25 Apr 2016 13:08:14 +0000 (15:08 +0200)]
lib: Added mtio-driven bufio implementation.

8 years agolib: Added bufio replacement for stdio.
Fredrik Tolf [Mon, 25 Apr 2016 13:06:14 +0000 (15:06 +0200)]
lib: Added bufio replacement for stdio.

8 years agolib: Allow reception of mtstdopen info structure.
Fredrik Tolf [Wed, 13 Apr 2016 23:45:15 +0000 (01:45 +0200)]
lib: Allow reception of mtstdopen info structure.

8 years agoaccesslog: Remember to flush request-body.
Fredrik Tolf [Fri, 8 Apr 2016 05:39:45 +0000 (07:39 +0200)]
accesslog: Remember to flush request-body.

8 years agodoc: Describe the new behavior of accesslog.
Fredrik Tolf [Fri, 8 Apr 2016 03:56:47 +0000 (05:56 +0200)]
doc: Describe the new behavior of accesslog.

8 years agoaccesslog: Added a filtering mode to collect such data as response codes.
Fredrik Tolf [Thu, 7 Apr 2016 23:06:06 +0000 (01:06 +0200)]
accesslog: Added a filtering mode to collect such data as response codes.

8 years agopython3: Fixed name conflict.
Fredrik Tolf [Mon, 4 Apr 2016 00:49:03 +0000 (02:49 +0200)]
python3: Fixed name conflict.

8 years agopython3: Make pooled threads start exit when wait-pool is large for some time.
Fredrik Tolf [Mon, 4 Apr 2016 00:13:03 +0000 (02:13 +0200)]
python3: Make pooled threads start exit when wait-pool is large for some time.

8 years agopython3: Added a pooled thread handler.
Fredrik Tolf [Sun, 3 Apr 2016 02:52:02 +0000 (04:52 +0200)]
python3: Added a pooled thread handler.

8 years agopython3: Fixed bug in sendreq.
Fredrik Tolf [Mon, 28 Mar 2016 00:29:47 +0000 (02:29 +0200)]
python3: Fixed bug in sendreq.

9 years agohtparser: Fixed SSL client-address formatting.
Fredrik Tolf [Sun, 1 Nov 2015 04:44:28 +0000 (05:44 +0100)]
htparser: Fixed SSL client-address formatting.

9 years agocall[fs]cgi: Fixed quoting bug.
Fredrik Tolf [Fri, 30 Oct 2015 04:14:32 +0000 (05:14 +0100)]
call[fs]cgi: Fixed quoting bug.

9 years agolib: Fixed minor bug in expandargs.
Fredrik Tolf [Wed, 5 Aug 2015 23:50:08 +0000 (01:50 +0200)]
lib: Fixed minor bug in expandargs.

9 years agolib: Fixed fopencookie seek function type.
Fredrik Tolf [Wed, 5 Aug 2015 23:42:26 +0000 (01:42 +0200)]
lib: Fixed fopencookie seek function type.

9 years agopython: Try to shut ashd-wsgi down more nicely upon signal receipt.
Fredrik Tolf [Mon, 3 Aug 2015 01:51:20 +0000 (03:51 +0200)]
python: Try to shut ashd-wsgi down more nicely upon signal receipt.

9 years agopython: Make recvfd/sendfd behave better on EINTR.
Fredrik Tolf [Mon, 3 Aug 2015 01:50:54 +0000 (03:50 +0200)]
python: Make recvfd/sendfd behave better on EINTR.

9 years agodirplex: Added reparse support.
Fredrik Tolf [Sat, 28 Mar 2015 23:38:32 +0000 (00:38 +0100)]
dirplex: Added reparse support.

9 years agopython: Added some code for easier testing of WSGI handlers.
Fredrik Tolf [Tue, 3 Feb 2015 05:00:26 +0000 (06:00 +0100)]
python: Added some code for easier testing of WSGI handlers.

9 years agohtparser: Handle ECONNABORTED correctly.
Fredrik Tolf [Tue, 3 Feb 2015 04:58:12 +0000 (05:58 +0100)]
htparser: Handle ECONNABORTED correctly.

10 years agopatplex: Fixed segfault bug in pattern replacement.
Fredrik Tolf [Mon, 10 Nov 2014 21:11:28 +0000 (22:11 +0100)]
patplex: Fixed segfault bug in pattern replacement.

10 years agocall[fs]cgi: Reset SIGCHLD to SIG_DFL before exec'ing children.
Fredrik Tolf [Wed, 15 Oct 2014 00:41:53 +0000 (02:41 +0200)]
call[fs]cgi: Reset SIGCHLD to SIG_DFL before exec'ing children.

10 years agolib: Improved EAGAIN reporting friendliness further.
Fredrik Tolf [Tue, 14 Oct 2014 22:14:38 +0000 (00:14 +0200)]
lib: Improved EAGAIN reporting friendliness further.

10 years agoMerge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
Fredrik Tolf [Tue, 14 Oct 2014 22:05:58 +0000 (00:05 +0200)]
Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd

10 years agocall[fs]cgi: Call killcuraddr explicitly instead of as an exit handler.
Fredrik Tolf [Tue, 14 Oct 2014 22:05:38 +0000 (00:05 +0200)]
call[fs]cgi: Call killcuraddr explicitly instead of as an exit handler.

10 years agodoc: Clarified wording slightly.
Fredrik Tolf [Tue, 30 Sep 2014 13:47:17 +0000 (15:47 +0200)]
doc: Clarified wording slightly.

10 years agohttrcall: Implemented optional limiting of child processes.
Fredrik Tolf [Mon, 29 Sep 2014 14:57:29 +0000 (16:57 +0200)]
httrcall: Implemented optional limiting of child processes.

10 years agocall[fs]cgi: Fixed shutdown bug.
Fredrik Tolf [Mon, 29 Sep 2014 00:01:32 +0000 (02:01 +0200)]
call[fs]cgi: Fixed shutdown bug.

10 years agohtparser: Affix a unique connection ID to each request.
Fredrik Tolf [Mon, 11 Aug 2014 02:17:41 +0000 (04:17 +0200)]
htparser: Affix a unique connection ID to each request.

10 years agohttimed: Prevent lossage of buffered requests during shutdown.
Fredrik Tolf [Sun, 13 Jul 2014 01:36:05 +0000 (03:36 +0200)]
httimed: Prevent lossage of buffered requests during shutdown.

10 years agopython: Added a global wsgidir module attribute to indicate currentness.
Fredrik Tolf [Sat, 17 May 2014 02:05:30 +0000 (04:05 +0200)]
python: Added a global wsgidir module attribute to indicate currentness.

10 years agopsendfile: Fixed crash when files cannot be opened.
Fredrik Tolf [Sat, 17 May 2014 00:32:25 +0000 (02:32 +0200)]
psendfile: Fixed crash when files cannot be opened.

10 years agoMerge branch 'master' of git.dolda2000.com:/srv/git/r/ashd
Fredrik Tolf [Fri, 25 Apr 2014 15:33:22 +0000 (17:33 +0200)]
Merge branch 'master' of git.dolda2000.com:/srv/git/r/ashd

10 years agohtparser: Fixed typo.
Fredrik Tolf [Sun, 13 Apr 2014 23:10:12 +0000 (01:10 +0200)]
htparser: Fixed typo.

10 years agohtparser: Accept more connections in bulk.
Fredrik Tolf [Sun, 13 Apr 2014 22:49:26 +0000 (00:49 +0200)]
htparser: Accept more connections in bulk.

If not for this, htparser will concentrate unduly on processing
existing connection, leaving the socket backlog filling up in the
meantime, dropping requests unnecessarily.

10 years agohtparser: Added support for handing a cipher priority specification to GnuTLS.
Fredrik Tolf [Sat, 12 Apr 2014 02:36:11 +0000 (04:36 +0200)]
htparser: Added support for handing a cipher priority specification to GnuTLS.

10 years agocallfcgi: Improved recvrec implementation.
Fredrik Tolf [Mon, 10 Mar 2014 10:51:34 +0000 (11:51 +0100)]
callfcgi: Improved recvrec implementation.

10 years agolib: Transfer the responsibility of fopencookie bugs to the generic implementation.
Fredrik Tolf [Mon, 3 Mar 2014 00:32:15 +0000 (01:32 +0100)]
lib: Transfer the responsibility of fopencookie bugs to the generic implementation.

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.