Stats: zero stats when Jemalloc is not being used

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Doc: move README to Markdown

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
License: core terms under the Apache License v2.0

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
License: packages terms under the Apache License v2.0

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Stats: fix worker stats initialization

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
SHA1: Fixed documentation of length parameter for encode function.

The length parameter is obviously used for data_in not for data_out as data_out is always the same length with sha1.

Signed-off-by: matematik7 <domen.ipavec@z-v.si>
Session: Fixed the problem with session init.

Session init did not save the correct path using store_name in session_store_path.
All session files were getting stored in /dev/shm/duda_session instead of /dev/shm/duda_session/store_name.

Signed-off-by: matematik7 <domen.ipavec@z-v.si>
Merge pull request #14 from matematik7/master

SHA1, Session: Fixed documentation for SHA1 encode function and a problem with session init.
API: use new Monkey API headers

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Packages: use new API headers

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Conf: check the incoming vhost is valid

Signed-off-by: Eduardo Silva <edsiper@gmail.com>
Main: small cleanup

Signed-off-by: Eduardo Silva <eduardo.silva@oracle.com>
Dthread: add dthread and define USE_VALGIND to make valgrind shutup

Signed-off-by: swpd <swpdtz@gmail.com>
Dthread: add implementaion

Signed-off-by: swpd <swpdtz@gmail.com>
Dthread: add thread specific dthread scheduler

Signed-off-by: swpd <swpdtz@gmail.com>
Dthread: update duda api

Signed-off-by: swpd <swpdtz@gmail.com>
Merge pull request #16 from swpd/dthread

Dthread Support for Duda I/O
Core: Initialize pthread_key duda_logger_fmt_cache

This pthread key was not initialized, generating a corruption on
Jemalloc when exiting the threads.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>
Dthread: remove element destructor; add return value to chan_send

Signed-off-by: swpd <swpdtz@gmail.com>
Core: cleanup duda_request_t session when an Event trap the exception.

The issue is that if a remote connection is closed and the owner is a set
of Events callbacks, when closing, it was not instructing the Monkey core
to release the original HTTP references. The issue is visible when using
WebSockets or any other similar application.

This patch adds a new flag to trace if the HTTP session was cleared or not,
so on Event close it will cleanup if applies.

Signed-off-by: Eduardo Silva <eduardo@monkey.io>