Debian: monkey-dev now distribute Monkey headers

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Debian: new libmonkey package (still require some fixes)

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
cgi: More swrite error checks

Signed-off-by: Lauri Kasanen <cand@gmx.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Follow on Bug #172: content_type fixes.

There is a problem with the sr data structure the
sr->content_type.data field  contains the content_type
value as well as the content_length value.This in combination
with the SHORTLEN value(64) leads wrong characters being copied
to the content_type ENV variable.

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
cgi: Make sure all mk_pointers are handled with length
cgi: Fix a crash due to uninitialized list
cgi: Fix behavior with high-performance CGI

cgit is too fast for epoll, causing epoll to send a hangup event
even though there are still several kilobytes left to read.

With this change, cgit can correctly send huge files on monkey.
Debian: libmonkey now distributes libmonkey.so symbolic link

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Debian: new libmonkey-dev and library naming improvements

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Debian: dropped libmonkey-dev and fixes in monkey-dev

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Config: remove unnecessary semicolon(;)

Signed-off-by: Zeying Xie <swpdtz@gmail.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Cheetah: Add a funtion to strip leading and trailing whitespace of input command line

Signed-off-by: Zeying Xie <swpdtz@gmail.com>
Signed-off-by: Eduardo Silva <edsiper@gmail.com>
plugin: Invoke stage_40 in http_request_end().

Fix a bug where stage_40 is never invoked if plugin ends request outside
of stage_* callbacks.

Bug discovered by mchubby
(github.com/ksonny/fastcgi-monkey-plugin/issues/1).

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
fastcgi: Change event mode of fcgi_fd correctly.

Prevent fcgi_fd from causing error when write event occur when
receiving.

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
Fix some remaining places from the monkey.h > libmonkey.h rename

Configure, man pages, and examples were not updated in
fd9c07d6ccc2fe8d37093bb213d375fbbd77cd29

Signed-off-by: Lauri Kasanen <cand@gmx.com>
cgi: Make sure stderr is handled
fastcgi: Remove use of strndup().

Signed-off-by: Sonny Karlsson <ksonny@lotrax.org>
Merge branch 'master' of monkey.io:/srv/git/monkey
Set close-on-exec flag on new connections
cgi: Don't access freed memory