]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
13 years agostream: detect keep-alive packets so we don't consider those invalid
Victor Julien [Tue, 16 Oct 2012 12:09:58 +0000 (14:09 +0200)] 
stream: detect keep-alive packets so we don't consider those invalid

13 years agostream: ignore ack value if ack flag is not set. Add stream.pkt_broken_ack event...
Victor Julien [Tue, 16 Oct 2012 11:27:58 +0000 (13:27 +0200)] 
stream: ignore ack value if ack flag is not set. Add stream.pkt_broken_ack event for when ack value is not 0 and ack flag not set.

13 years agostream: handle retransmission of lost data packet on TIME_WAIT state
Victor Julien [Tue, 16 Oct 2012 09:55:36 +0000 (11:55 +0200)] 
stream: handle retransmission of lost data packet on TIME_WAIT state

13 years agostream: go from FIN_WAIT_1 to CLOSING on simultaneous close.
Victor Julien [Tue, 16 Oct 2012 09:14:59 +0000 (11:14 +0200)] 
stream: go from FIN_WAIT_1 to CLOSING on simultaneous close.

13 years agostream: don't reject RST as response to SYN because of ACK
Victor Julien [Tue, 16 Oct 2012 08:50:39 +0000 (10:50 +0200)] 
stream: don't reject RST as response to SYN because of ACK

13 years agostream: add option to match on overlapping data
Victor Julien [Thu, 11 Oct 2012 19:02:56 +0000 (21:02 +0200)] 
stream: add option to match on overlapping data

Set event on overlapping data segments that have different data.

Add stream-events option stream-event:reassembly_overlap_different_data and
add an example rule.

Issue 603.

13 years agolibhtp: don't use internal iterator
Victor Julien [Fri, 12 Oct 2012 14:40:43 +0000 (16:40 +0200)] 
libhtp: don't use internal iterator

It violates thread safety. #601.

Suricata assures thread safety on the flow level for HTTP tracking. Part of the flow is (in case of HTTP) libhtp's htp_connp_t state. At startup the libhtp glue layer, app-layer-htp initializes as many htp_cfg_t instances as there are libhtp server configurations in the yaml. At HTTP session start, we look up the proper htp_cfg_t based on the server ip and pass it to htp_connp_create.  A ptr to the relevant htp_cfg_t is part of the htp_connp_t. The htp_cfg_t contains "hooks". The are registered based on yaml config at init time.

The hooks have lists of type list_t. The list is run with a built in iterator. The iterator is reset at the start of each "hook_run_all". Since multiple flows share the same htp_cfg_t flow A can reset the iterator while flow B is using it. The flow lock has no effect as flows share the htp_cfg_t.

This has been observed in real traffic. hook_response_body_data was run on the same data multiple times, leading to corrupt extracted files.

13 years agoFix/suppress a couple of harmless compiler warnings.
Victor Julien [Tue, 9 Oct 2012 15:22:42 +0000 (17:22 +0200)] 
Fix/suppress a couple of harmless compiler warnings.

13 years agoRemove dead comment about flow reference api duplicate
Anoop Saldanha [Wed, 10 Oct 2012 08:43:36 +0000 (14:13 +0530)] 
Remove dead comment about flow reference api duplicate

13 years agoMove Flow Reference/Dereferene api from flow-util.h to flow.h.
Anoop Saldanha [Fri, 5 Oct 2012 12:22:37 +0000 (17:52 +0530)] 
Move Flow Reference/Dereferene api from flow-util.h to flow.h.

Remove duplicate FlowDeReference from decode.h

13 years agoUpdate suricata to use FlowReference/FlowDeReference for the ones left out
Anoop Saldanha [Fri, 5 Oct 2012 09:37:27 +0000 (15:07 +0530)] 
Update suricata to use FlowReference/FlowDeReference for the ones left out
from last update.

13 years agoyaml: default to cluster_flow type for AF_PACKET and PF_RING
Victor Julien [Tue, 9 Oct 2012 13:16:12 +0000 (15:16 +0200)] 
yaml: default to cluster_flow type for AF_PACKET and PF_RING

13 years agoprofiling: fix rule profiling output sometimes missing sid,rev,gid. Bug #576.
Victor Julien [Mon, 8 Oct 2012 10:38:47 +0000 (12:38 +0200)] 
profiling: fix rule profiling output sometimes missing sid,rev,gid. Bug #576.

13 years agoAdd dsize check to prefilter stage
Victor Julien [Sat, 6 Oct 2012 18:00:22 +0000 (20:00 +0200)] 
Add dsize check to prefilter stage

Many sigs with dsize have a weak fast_pattern. Those patterns
are likely to match. By filtering on dsize early, we safe a lot
of cycles later.

13 years agoFor signatures with the dsize option set depth on any content match in that sig.
Victor Julien [Wed, 18 May 2011 17:07:51 +0000 (19:07 +0200)] 
For signatures with the dsize option set depth on any content match in that sig.

13 years agoUpdate changelog to reflect 1.4beta2 changes suricata-1.4beta2
Victor Julien [Thu, 4 Oct 2012 13:01:36 +0000 (15:01 +0200)] 
Update changelog to reflect 1.4beta2 changes

13 years agoClean up and update bundled docs
Victor Julien [Thu, 4 Oct 2012 12:59:58 +0000 (14:59 +0200)] 
Clean up and update bundled docs

13 years agoremove reference to non-existing file from Makefile.am
Victor Julien [Thu, 4 Oct 2012 12:52:22 +0000 (14:52 +0200)] 
remove reference to non-existing file from Makefile.am

13 years agopacket src: move pkt_src field up in the structure to fix in an existing hole (found...
Victor Julien [Thu, 4 Oct 2012 11:20:27 +0000 (13:20 +0200)] 
packet src: move pkt_src field up in the structure to fix in an existing hole (found with pahole -C Packet_ src/.libs/suricata).

13 years agoAdd a packet src for every packet generated inside suricata.
Anoop Saldanha [Sat, 29 Sep 2012 04:59:56 +0000 (10:29 +0530)] 
Add a packet src for every packet generated inside suricata.

13 years agonfq: fix detection of type nfq_get_payload function.
Eric Leblond [Thu, 4 Oct 2012 09:53:29 +0000 (11:53 +0200)] 
nfq: fix detection of type nfq_get_payload function.

13 years agonfq: close the queue when leaving acquisition.
Eric Leblond [Thu, 4 Oct 2012 09:06:33 +0000 (11:06 +0200)] 
nfq: close the queue when leaving acquisition.

This patch adds a call to close the queue when the acquisition
loop is ending. This way the incoming packets will be accepted
during all the shutdown phase (if the queue-bypass option of
NFQUEUE is used). At the same time the currently processed packets
will be dropped but the time scale are different: suricata will
drop 20 ms of packets and the shutdown can take 0.5 seconds.

Patch based on an idea of Victor Julien.

13 years agofast_pattern: don't consider http_method, http_stat_code and http_stat_msg when autom...
Victor Julien [Thu, 4 Oct 2012 09:48:42 +0000 (11:48 +0200)] 
fast_pattern: don't consider http_method, http_stat_code and http_stat_msg when automatically giving preference to a HTTP pattern over a stream pattern.

13 years agopf-ring: suppress unused variable.
Eric Leblond [Wed, 3 Oct 2012 08:34:09 +0000 (10:34 +0200)] 
pf-ring: suppress unused variable.

13 years agopf-ring: add missing header.
Eric Leblond [Sun, 30 Sep 2012 14:19:53 +0000 (16:19 +0200)] 
pf-ring: add missing header.

13 years agopf-ring: protect definition of (un)likely
Eric Leblond [Sun, 30 Sep 2012 14:18:10 +0000 (16:18 +0200)] 
pf-ring: protect definition of (un)likely

This patch makes (un)likely declared if and only if they are not
declared before.

13 years agofix for bug #574. 118/head
Anoop Saldanha [Thu, 4 Oct 2012 07:29:58 +0000 (12:59 +0530)] 
fix for bug #574.

More of a temporary solution to prevent any possible FPs.  Disable content
inspection bypass for mpm patterns.

13 years agofix for bug #577.
Anoop Saldanha [Tue, 2 Oct 2012 15:43:35 +0000 (21:13 +0530)] 
fix for bug #577.

If a pattern has matched on mpm, don't re-inspect it later, subject to certain
conditions met by the pattern - namely, not negated, right chop, no replacet
attached to it.

13 years agohtp: update version numbers of bundled htp
Victor Julien [Wed, 3 Oct 2012 13:43:43 +0000 (15:43 +0200)] 
htp: update version numbers of bundled htp

13 years agohttp: fix multipart parsing leading to missing chunks of files in file extraction.
Victor Julien [Wed, 3 Oct 2012 09:37:04 +0000 (11:37 +0200)] 
http: fix multipart parsing leading to missing chunks of files in file extraction.

13 years agoMake available custom features of libhtp.
Anoop Saldanha [Wed, 26 Sep 2012 16:48:02 +0000 (22:18 +0530)] 
Make available custom features of libhtp.

The power of libhtp customisation now available to users.

Options available -

path-backslash-separators: yes
path-compress-separators: yes
path-control-char-handling: none
path-convert-utf8: yes
path-decode-separators: yes
path-decode-u-encoding: yes
path-invalid-encoding-handling: preserve_percent
path-invalid-utf8-handling: none
path-nul-encoded-handling: none
path-nul-raw-handling: none
set-path-replacement-char: ?
set-path-unicode-mapping: bestfit

You can use this for your libhtp customisation.  Options explained in our
wiki.

https://redmine.openinfosecfoundation.org/projects/suricata/wiki/Advanced_libhtp_customization

13 years agorefactor htpconfigure()
Anoop Saldanha [Wed, 26 Sep 2012 15:40:15 +0000 (21:10 +0530)] 
refactor htpconfigure()

13 years agobug #572: make sure we use profiling fallback for all architectures except x86_64...
Victor Julien [Tue, 2 Oct 2012 11:56:12 +0000 (13:56 +0200)] 
bug #572: make sure we use profiling fallback for all architectures except x86_64 and i386.

13 years agoFix flow keyword compilation failure.
Victor Julien [Tue, 2 Oct 2012 08:27:12 +0000 (10:27 +0200)] 
Fix flow keyword compilation failure.

13 years agoUpdate all flow referencing to use the new FlowReference and FlowDeReference
Anoop Saldanha [Thu, 27 Sep 2012 12:55:37 +0000 (18:25 +0530)] 
Update all flow referencing to use the new FlowReference and FlowDeReference
macros.

13 years agofix for bug #557.
Anoop Saldanha [Thu, 27 Sep 2012 09:12:49 +0000 (14:42 +0530)] 
fix for bug #557.

In FFRv2, dereference flow from a packet using the new reference/dereference
util macros.  This allows the decr use_cnt for flow and reseting the flow
pointer to NULL for the pseudo pkt to happen simultaneously, in case there we
fail to retrieve a pseudo_packet and have to return the already obtained
pseudo packets, back to the packetpool.

13 years agoIntroduce utility flow macros to help referencing/dereferencing flows.
Anoop Saldanha [Thu, 27 Sep 2012 09:10:07 +0000 (14:40 +0530)] 
Introduce utility flow macros to help referencing/dereferencing flows.

13 years agofix for bug #557.
Anoop Saldanha [Wed, 26 Sep 2012 17:17:53 +0000 (22:47 +0530)] 
fix for bug #557.

Reset hhd buffers list len if we exit before allocating the buffer.

13 years agofix for bug #575. 107/head 108/head
Anoop Saldanha [Mon, 1 Oct 2012 16:25:56 +0000 (21:55 +0530)] 
fix for bug #575.

If sig has no_stream set, don't mask it as requiring flow.  Should get rid of
FNs any.

13 years agodetect: properly store a stateful match if it happens at the start of inspection
Victor Julien [Fri, 28 Sep 2012 17:49:34 +0000 (19:49 +0200)] 
detect: properly store a stateful match if it happens at the start of inspection

13 years agoDead code cleanup. Coverity 728047, 728048, 728049.
Victor Julien [Thu, 27 Sep 2012 10:53:54 +0000 (12:53 +0200)] 
Dead code cleanup. Coverity 728047, 728048, 728049.

13 years agoprofiling: fix some profiling info missing from output
Victor Julien [Wed, 26 Sep 2012 16:56:24 +0000 (18:56 +0200)] 
profiling: fix some profiling info missing from output

13 years agotm-thread: detect thread death 98/head
Eric Leblond [Wed, 26 Sep 2012 14:03:33 +0000 (16:03 +0200)] 
tm-thread: detect thread death

When a thread is dead at init the THV_INIT_DONE flag is not set
and the spawn function can freeze (see bug #553 for an example).
In this case THV_RUNNING_DONE is set and we can also check on this
state for leaving the function. This should fix #bug553

13 years agothreshold: improve comments of shipped threshold.config, add links to wiki.
Victor Julien [Wed, 26 Sep 2012 09:42:53 +0000 (11:42 +0200)] 
threshold: improve comments of shipped threshold.config, add links to wiki.

13 years agofix http server/client body handling. Update body status based on tx state.
Anoop Saldanha [Tue, 25 Sep 2012 14:53:29 +0000 (20:23 +0530)] 
fix http server/client body handling.  Update body status based on tx state.

13 years agothreshold: allow threshold.config to override rule
Victor Julien [Wed, 26 Sep 2012 06:58:05 +0000 (08:58 +0200)] 
threshold: allow threshold.config to override rule

Allow threshold.conf to override rule thresholds in the following
cases:

- threshold.config rule uses threshold or event_filter AND
- threshold.config rule applies to a single signature (so no
  gid 0 or sid 0)

Confirmed to work with both threshold and detection_filter rule
keywords.

Part of bug #425.

13 years agoMinor parsing cleanups in detect-engine options.
Victor Julien [Wed, 26 Sep 2012 05:17:54 +0000 (07:17 +0200)] 
Minor parsing cleanups in detect-engine options.

13 years agoyaml: add addr and port vars commonly used by ET/ETpro
Victor Julien [Tue, 25 Sep 2012 12:46:51 +0000 (14:46 +0200)] 
yaml: add addr and port vars commonly used by ET/ETpro

13 years agococcinelle: add test on malloc error check. 91/head
Eric Leblond [Fri, 21 Sep 2012 10:47:44 +0000 (12:47 +0200)] 
coccinelle: add test on malloc error check.

This patch adds a coccinelle code check on SCMalloc, SCCalloc and
SCStrdup and other memory handling functions. It verifies that the
error checking is made.

13 years agoFix indentation of win32 files.
Eric Leblond [Mon, 24 Sep 2012 11:24:29 +0000 (13:24 +0200)] 
Fix indentation of win32 files.

13 years agoAdd missing sctrdup test
Eric Leblond [Mon, 24 Sep 2012 11:02:30 +0000 (13:02 +0200)] 
Add missing sctrdup test

13 years agococcinelle: don't test UNITTEST code
Eric Leblond [Sun, 23 Sep 2012 16:05:32 +0000 (18:05 +0200)] 
coccinelle: don't test UNITTEST code

13 years agoUse unlikely for error treatment.
Eric Leblond [Sun, 23 Sep 2012 13:56:00 +0000 (15:56 +0200)] 
Use unlikely for error treatment.

When handling error case on SCMallog, SCCalloc or SCStrdup
we are in an unlikely case. This patch adds the unlikely()
expression to indicate this to gcc.

This patch has been obtained via coccinelle. The transformation
is the following:

@istested@
identifier x;
statement S1;
identifier func =~ "(SCMalloc|SCStrdup|SCCalloc)";
@@

x = func(...)
... when != x
- if (x == NULL) S1
+ if (unlikely(x == NULL)) S1

13 years agoAdd some missing checks of SCStrdup return.
Eric Leblond [Fri, 21 Sep 2012 21:26:53 +0000 (23:26 +0200)] 
Add some missing checks of SCStrdup return.

13 years agoAdd some missing checks of SCMalloc return.
Eric Leblond [Fri, 21 Sep 2012 13:24:17 +0000 (15:24 +0200)] 
Add some missing checks of SCMalloc return.

13 years agothreshold: allow suppression for sigs with threshold set. Part of #425.
Victor Julien [Mon, 24 Sep 2012 14:53:59 +0000 (16:53 +0200)] 
threshold: allow suppression for sigs with threshold set. Part of #425.

13 years agofix for #529
Anoop Saldanha [Fri, 21 Sep 2012 18:44:01 +0000 (00:14 +0530)] 
fix for #529

Respect pcre's anchor during content inspection.

13 years agoUnittest to display #bug 529. pcre anchor not respected
Anoop Saldanha [Mon, 24 Sep 2012 10:32:07 +0000 (16:02 +0530)] 
Unittest to display #bug 529.  pcre anchor not respected

13 years agodetect-pcre.c cleanup. Delete old pcre functions that we no longer use.
Anoop Saldanha [Fri, 21 Sep 2012 17:48:11 +0000 (23:18 +0530)] 
detect-pcre.c cleanup.  Delete old pcre functions that we no longer use.

13 years agoaf-packet: clean APFPacketVar before release.
Eric Leblond [Wed, 19 Sep 2012 14:40:14 +0000 (16:40 +0200)] 
af-packet: clean APFPacketVar before release.

This patch resets the AFPPacketVar linked to a Packet in the release
function to avoid any side effect when the packet is reused. To do
so a new AFPV_CLEANUP macro has been introduced.

13 years agodecode: clean release function
Eric Leblond [Wed, 19 Sep 2012 13:40:54 +0000 (15:40 +0200)] 
decode: clean release function

13 years agoGive priority to non stream content over stream content when selecting fast
Anoop Saldanha [Fri, 21 Sep 2012 15:15:17 +0000 (20:45 +0530)] 
Give priority to non stream content over stream content when selecting fast
pattern.

13 years agoMinor output cleanup
Victor Julien [Fri, 21 Sep 2012 15:43:11 +0000 (17:43 +0200)] 
Minor output cleanup

13 years agoFix defrag compilation warning.
Victor Julien [Fri, 21 Sep 2012 15:39:32 +0000 (17:39 +0200)] 
Fix defrag compilation warning.

13 years agoFix compilation if luajit is disabled.
Victor Julien [Fri, 21 Sep 2012 14:59:27 +0000 (16:59 +0200)] 
Fix compilation if luajit is disabled.

13 years agoluajit: correct offset passed to script for lua's array idx starting at 1. Add http...
Victor Julien [Fri, 21 Sep 2012 14:36:48 +0000 (16:36 +0200)] 
luajit: correct offset passed to script for lua's array idx starting at 1. Add http.response_headers and http.response_headers.raw buffers.

13 years agoreintroduce pool free func for cases where block alloc is not used.
Victor Julien [Fri, 21 Sep 2012 13:10:28 +0000 (15:10 +0200)] 
reintroduce pool free func for cases where block alloc is not used.

13 years agoluajit: prealloc lua states to increases chances of alloc success. Luajit requires...
Victor Julien [Fri, 21 Sep 2012 12:18:53 +0000 (14:18 +0200)] 
luajit: prealloc lua states to increases chances of alloc success. Luajit requires them to be in memory <2GB.

13 years agopool: only alloc one large block if it will actually be used.
Victor Julien [Fri, 21 Sep 2012 12:17:42 +0000 (14:17 +0200)] 
pool: only alloc one large block if it will actually be used.

13 years agoluajit: fix crash at shutdown / rule reload if lua script didn't properly init.
Victor Julien [Thu, 20 Sep 2012 20:09:30 +0000 (22:09 +0200)] 
luajit: fix crash at shutdown / rule reload if lua script didn't properly init.

13 years agoAdd missing include in flow-manager
Eric Leblond [Thu, 20 Sep 2012 07:14:58 +0000 (09:14 +0200)] 
Add missing include in flow-manager

DefragTimeoutHash was not declared before being used.

13 years agoluajit: fix crash if luaL_newstate fails
Victor Julien [Thu, 20 Sep 2012 13:19:51 +0000 (15:19 +0200)] 
luajit: fix crash if luaL_newstate fails

13 years agoluajit: buffer selection fixes
Victor Julien [Thu, 20 Sep 2012 07:48:38 +0000 (09:48 +0200)] 
luajit: buffer selection fixes

13 years agohttp: fix multipart parsing bug
Victor Julien [Thu, 20 Sep 2012 12:46:22 +0000 (14:46 +0200)] 
http: fix multipart parsing bug

13 years agostream: never resend reassembled data to app layer.
Victor Julien [Thu, 20 Sep 2012 12:42:41 +0000 (14:42 +0200)] 
stream: never resend reassembled data to app layer.

13 years agoapp layer events: prefilter sigs that need an event
Victor Julien [Wed, 19 Sep 2012 12:09:41 +0000 (14:09 +0200)] 
app layer events: prefilter sigs that need an event

13 years agoengine events: prefilter sigs that need a event
Victor Julien [Wed, 19 Sep 2012 10:58:56 +0000 (12:58 +0200)] 
engine events: prefilter sigs that need a event

13 years agoaf-packet: little code cleaning
Eric Leblond [Tue, 18 Sep 2012 15:12:31 +0000 (17:12 +0200)] 
af-packet: little code cleaning

This patch cleans the code were two almost identical treatment on
the packet we're made. It may be linked by a merge error I've done
or to a simple mistake on my side.

13 years agoaf-packet: fix IPS mode
Eric Leblond [Wed, 19 Sep 2012 07:55:50 +0000 (09:55 +0200)] 
af-packet: fix IPS mode

There was an inversion in code resulting as all sockets being seen
as non IPS mode when doing the peering. This resulted in a crash at
first packet because it has no peer.

13 years agoFix logic operator.
Eric Leblond [Tue, 18 Sep 2012 13:01:12 +0000 (15:01 +0200)] 
Fix logic operator.

Previous patches on the same subject did not fixed this error as it
was undetected because the code was not compiled on my setup.

13 years agoDefrag engine
Victor Julien [Tue, 18 Sep 2012 16:13:09 +0000 (18:13 +0200)] 
Defrag engine

Big rewrite of defrag engine to make it more scalable and fix some
locking logic flaws.

Now uses a hash of trackers similar to Flow and Host hashes.

13 years agoprofiling: fix build on older systems
Victor Julien [Mon, 17 Sep 2012 09:21:26 +0000 (11:21 +0200)] 
profiling: fix build on older systems

13 years agoautotools: fix doc install on old systems. 73/head
Eric Leblond [Mon, 17 Sep 2012 09:11:47 +0000 (11:11 +0200)] 
autotools: fix doc install on old systems.

13 years agoprofiling: remove obsolete unit test
Victor Julien [Mon, 17 Sep 2012 08:38:39 +0000 (10:38 +0200)] 
profiling: remove obsolete unit test

13 years agopf_ring: set cluster_id even if only one thread is used.
Eric Leblond [Fri, 14 Sep 2012 16:06:37 +0000 (18:06 +0200)] 
pf_ring: set cluster_id even if only one thread is used.

13 years agoprofiling: minor cleanup
Victor Julien [Mon, 17 Sep 2012 08:34:34 +0000 (10:34 +0200)] 
profiling: minor cleanup

13 years agoprofiling: make sure counters are reset after a reload.
Victor Julien [Mon, 17 Sep 2012 07:56:52 +0000 (09:56 +0200)] 
profiling: make sure counters are reset after a reload.

13 years agoprofiling: fix memory error in case of rule reload.
Victor Julien [Sun, 16 Sep 2012 10:57:53 +0000 (12:57 +0200)] 
profiling: fix memory error in case of rule reload.

13 years agoRule profiling update
Victor Julien [Sun, 16 Sep 2012 10:08:35 +0000 (12:08 +0200)] 
Rule profiling update

- Remove usage of counters api.
- Store stats in detect engine thread ctx to remove locking
- Support rule reloads

13 years agoluajit: add http.uri.raw, cookie, ua, headers, headers.raw buffers.
Victor Julien [Fri, 14 Sep 2012 05:59:57 +0000 (07:59 +0200)] 
luajit: add http.uri.raw, cookie, ua, headers, headers.raw buffers.

13 years agoFix build if luajit is not available.
Eric Leblond [Thu, 13 Sep 2012 12:52:42 +0000 (14:52 +0200)] 
Fix build if luajit is not available.

13 years agodefrag: don't return after a cleaning. 69/head
Eric Leblond [Thu, 13 Sep 2012 09:57:07 +0000 (11:57 +0200)] 
defrag: don't return after a cleaning.

This patch changes the policy of the timeout function by cleaning
every timeouted trackers.
Previous code was only freeing the first tracker and this was resulting
in calling the timeout function continuously. One of my previous patch
has modified the function to avoid to run it more than twice a second.
But as it was not taken into account the fact only the first tracker was
freed, the result was that a lot of tracker could not be allocated.

13 years agoluajit: support http.request_body (http_client_body) and http.response_body (file_dat...
Victor Julien [Wed, 12 Sep 2012 15:52:57 +0000 (17:52 +0200)] 
luajit: support http.request_body (http_client_body) and http.response_body (file_data/http_server_body).

13 years agoluajit: clean up initialization
Victor Julien [Sun, 9 Sep 2012 13:46:11 +0000 (15:46 +0200)] 
luajit: clean up initialization

13 years agoInstall documentation with 'make install'.
Eric Leblond [Mon, 10 Sep 2012 09:18:07 +0000 (11:18 +0200)] 
Install documentation with 'make install'.

13 years agopool: rename Free function to Cleanup
Eric Leblond [Mon, 10 Sep 2012 07:06:41 +0000 (09:06 +0200)] 
pool: rename Free function to Cleanup

This patch renames Free functions to Cleanup as the free is made
by the pool system.

13 years agodefrag: don't use message for repetitive error 65/head
Eric Leblond [Sun, 9 Sep 2012 20:48:46 +0000 (22:48 +0200)] 
defrag: don't use message for repetitive error

When nothing can be fetch from the pool, this can repeat frequently.
Thus displaying a message in the log will not help. This patch
uses a counter instead of a log message. As this is a sort of memcap
this is conformed to what is done for other issues of the same type.

13 years agoSC_LOG_ERROR is not an error.
Eric Leblond [Fri, 7 Sep 2012 11:54:35 +0000 (13:54 +0200)] 
SC_LOG_ERROR is not an error.

13 years agoFix warning about unused return of SC_ATOMIC func.
Eric Leblond [Fri, 7 Sep 2012 11:53:44 +0000 (13:53 +0200)] 
Fix warning about unused return of SC_ATOMIC func.

13 years agoFix invalid usage of operator.
Eric Leblond [Fri, 7 Sep 2012 11:52:21 +0000 (13:52 +0200)] 
Fix invalid usage of operator.