February 18, 2009
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 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 80681b5

Initialize mutex. Fix poll_fd to properly lock/unlock mutex. This fixes the STREAM command.

Török Edvin authored on 2009/02/14 18:14:04
February 13, 2009
View 36784ca

fix nFILDES command

Török Edvin authored on 2009/02/13 23:18:54
View 086eab5

update old copyright headers

Tomasz Kojm authored on 2009/02/13 19:55:45
View 6e3256f

Unify error paths. Remove unix socket we created if startup fails due to invalid config.

Török Edvin authored on 2009/02/13 06:14:45
View 949c6fe

merge from clamd-proto branch: handle multiple %v parameters introduce poll_fds that also does the read into a buffer introduce thrmgr_group* commands for keeping track of groups of commands (multiscan, IDSESSION) introduce 2 queues in thrmgr, multiscan queues get lower priority. Commands are processed from both queues in a 4:1 ratio to avoid starvation. unify reply code: conn_reply* unify scanner code into scan_callback that is called from cli_ftw multiscan doesn't need stat() now if readdir() provides dt_type redesign clamd main loop: there is now an accept thread, and a recv()/dispatch thread, +MaxThreads worker (scanner) threads. introduce limiting on commands when worker threads are contended. introduce IDSESSION, a replacement for the old SESSION command, that allows asyncronous (scan) commands and scan replies introduce INSTREAM that allows sending the data to scan on same connection (vs STREAM that requires another port) introduce zCOMMANDS

Török Edvin authored on 2009/02/13 01:51:09
December 18, 2008
View 064b4a0

initial version of the unified option parser (bb#1215)

Tomasz Kojm authored on 2008/12/18 06:42:54
November 14, 2008
View b8fe70b

libclamav: drop options parameter in cl_engine_new(); replace cl_engine_dup() with cl_engine_addref()

Tomasz Kojm authored on 2008/11/14 00:55:35
November 13, 2008
View 395fb66

fix some possible memleaks

Tomasz Kojm authored on 2008/11/13 04:39:31
View 370892d

clamscan, clamd: use the new API; drop the hardcoded default limits and use the ones set in cl_engine_new()

Tomasz Kojm authored on 2008/11/13 01:19:43
November 6, 2008
View deb3031

mempool statistics support

Török Edvin authored on 2008/11/06 23:27:27
September 8, 2008
View edc677c

clamd/server-th.c: fix handling of pthread_attr_init/pthread_create in ClamukoScanOnAccess (bb#1169)

Tomasz Kojm authored on 2008/09/08 23:08:05