February 19, 2009
View 4d26118

In single INSTREAM mode, remove FD from polled set (BB #1410) Fix testcase, INSTREAM should say UNKNOWN COMMAND in old mode and close conn, sending anything after it will likely result in a broken pipe.(BB #1407)

Török Edvin authored on 2009/02/19 03:37:57
February 18, 2009
View 770701e

disable test on BSD

Török Edvin authored on 2009/02/18 05:41:46
View 904c425

add missing header

Török Edvin authored on 2009/02/18 04:40:22
View 1d60f70

git-* commands are gone, use 'git svn'. correct include position for fdpassing.h

Török Edvin authored on 2009/02/18 04:40:17
View 537292a

Reject new commands sent as new-style commands to avoid confusion. This means that IDSESSION/INSTREAM must be sent as nIDSESSION\n or zIDSESSION\0, ditto for INSTREAM. Adjust testcases accordingly. Old commands are still accepted when sent without delimiter.

Török Edvin authored on 2009/02/18 03:04:48
View e114b10

fix use of uninitialized value. add test for STREAM. fix missing closing pragmas.

Török Edvin authored on 2009/02/18 02:35:31
View b337768

another warning

Török Edvin authored on 2009/02/18 01:07:58
View c5355ae

make sending ancillary data at wrong time a protocol error. change testcase accordingly.

Török Edvin authored on 2009/02/18 00:59:31
View 5f6edb2

ReadTimeout handling, and introduce CommandReadTimeout.

Török Edvin authored on 2009/02/18 00:59:21
February 17, 2009
View 456e31a

fix typo. add another stress test. Don't leak file descriptors. Fix IDSESSION delimiter handling.

Török Edvin authored on 2009/02/17 06:27:22
View 0378a9a

introduce timeouts for send(), this is needed for IDSESSION to work reliably, since a buggy client implementation may get stuck in send(), and then clamd gets stuck in send() -> deadlock. To avoid this we need nonblocking sockets, and (low) timeouts on send. Add more tests for clamd protocol, including a stress test for IDSESSION.

Török Edvin authored on 2009/02/17 03:27:08
View ec86878

test for FILDES

Török Edvin authored on 2009/02/17 03:27:03
View 4e24a36

add more unit tests. Make handling of old-style commands compatible with old clamd: if they have a \n that will delimit the command. If multiscan of a single file encounters errors, don't reply OK too.

Török Edvin authored on 2009/02/17 03:26:58
February 14, 2009
View 6870ebe

mdprintf was also taking %f and %l, and they have different size than int. Make the ARGLEN get the correct vaarg types, otherwise it was popping off the stack an item of the wrong size!

Török Edvin authored on 2009/02/14 01:52:15
February 13, 2009
View 8cad8e8

fix distcheck errors

Török Edvin authored on 2009/02/13 03:25:17