Signals: Removed unused variable 'old' in mk_signal_thread_sigpipe_safe()

Removed the variable 'sigset_t old' in line 71 from function, 'void mk_signal_thread_sigpipe_safe()'. This patch removes the following warning caused during 'make':

------------------ WARNING ---------------------
mk_signals.c: In function ‘mk_signal_thread_sigpipe_safe’:
mk_signals.c:71:19: warning: unused variable ‘old’ [-Wunused-variable]
------------------ WARNING ---------------------

Signed-off-by: Savita TS <savita.seetaraman5@gmail.com>
Socket: Added a variable to accept return value of read() in 'mk_socket_tcp_autocorking()'

Added a variable to accept the return value of read() in line 266 in function 'mk_socket_tcp_autocorking()'. This patch removes the following warning that arises during 'make' :

--------------- WARNING --------------------
mk_socket.c: In function ‘mk_socket_tcp_autocorking’:
mk_socket.c:265:9: warning: ignoring return value of ‘read’, declared with attribute warn_unused_result [-Wunused-result]
--------------- WARNING --------------------

Signed-off-by: Savita TS <savita.seetaraman5@gmail.com>
Virtual Host: add Redirect support (Fix #132).

This patch implements a basic HTTP redirect functionality at
Virtual Host level, when the Redirect key is set on the Virtual
Host configuration file, for every incoming request the server
will perform a HTTP redirect. e.g:

[SERVER]
    Redirect  http://monkey-project.com

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Merge branch 'master' of github.com:monkey/monkey
Virtual Host: add Redirect support (Fix #132).

This patch implements a basic HTTP redirect functionality at
Virtual Host level, when the Redirect key is set on the Virtual
Host configuration file, for every incoming request the server
will perform a HTTP redirect. e.g:

[SERVER]
    Redirect  http://monkey-project.com

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Signals: Removed unused variable 'old' in mk_signal_thread_sigpipe_safe()

Removed the variable 'sigset_t old' in line 71 from function, 'void mk_signal_thread_sigpipe_safe()'. This patch removes the following warning caused during 'make':

------------------ WARNING ---------------------
mk_signals.c: In function ‘mk_signal_thread_sigpipe_safe’:
mk_signals.c:71:19: warning: unused variable ‘old’ [-Wunused-variable]
------------------ WARNING ---------------------

Signed-off-by: Savita TS <savita.seetaraman5@gmail.com>
Merge branch 'master' of github.com:monkey/monkey
Debian: structure changes

From now all plugins that do not depends on external dependencies are
distributed from the principal Monkey package. The only plugin that remains
as a separate package is monkey-polarssl.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Doc: update Contributing file (lines length)

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Mandril: check decoded URI (fix #92)

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Utils: fix return value check on libc_error() stuff

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Plugin: do not re-set event list

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Connection: on close, remove FD from Scheduler first

when a hangup or connection close event is raised, the core
was invoking plugins callback directly and at the end the Scheduler
for removal procedure.

This behavior ended up in a problem as the core is not aware about
what a plugin is doing after a callback, the plugin may "open" a
new connection (new FD) and the Kernel "may" assign the previous FD
closed number again, ending in a new close from the caller, e.g:

 - Plugin request to hangup a connection.
 - Core receive the event and invoke callbacks for closing stuff.
 - Plugin after cleanup decides to create a new FD.
 - The Kernel assign the same FD number than the recently closed.
 - Core retakes the control and let the Scheduler close everything
   related to the original FD.
 - The Core is closing "the NEW FD" messing up everything.

After this patch the behavior is:

 - Plugin request to hangup a connection.
 - Core receive the close event, invoke the Scheduler.
 - The Scheduler cleanup all references for this FD, also it make
   sure to remove event notifications from the epoll(7) loop.
 - The Core invoke callbacks for closing stuff.
 - Everything gets clean properly.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
FastCGI: do not remove the FD event on hangup (Monkey already did)

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
HTML: prepare home page for next version

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Test-plugin: making a basic monkey plugin
             A proof of concept plugin created
Lua: modifying test to a wireframe for the lua plugin
read a sample config file
Lua: reading a real config file