Török Edvin
0c8c3a5463
fix use-after-free
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4732 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
0cac67ab4c
fix use-after-free
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4714 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
fdbaba8d49
always allocate a jobgroup, that way on shutdown we are sure
...
that it doesn't dissappear.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4712 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
e066e3cb47
unify thresholds
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4711 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
e001f2838e
Use 2 queues: one for single, one for bulk messages.
...
Also introduce MaxQueue, this will prevent clamdscan from flooding
clamd with too many FILDES requests.
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4710 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
8d66a87ed4
really fix multiscan
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4684 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
2ea8946280
don't execute commands if client disconnected.
...
fix MULTISCAN
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4682 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
ef4ed2e180
preliminary INSTREAM support.
...
TODO: the code starts to look ugly, clean up the code.
INSTREAM shouldn't reply fd[]
make jobgroup own the resources (sockets, tempfiles)
allow to notify jobgroup to terminate when remote disconnects
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4681 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
79b43cf868
preliminary IDSESSION support, no IDs yet
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4671 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
3de54fe471
WIP switch to new multiscan code.
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/clamd-proto@4655 77e5149b-7576-45b1-b177-96237e5ba77b
17 years ago
Török Edvin
15adbc849a
update unit tests to new API.
...
Initialization order changed, make sure stats_tls_key is initialized.
git-svn: trunk@4387
17 years ago
Török Edvin
08402afa4c
fix more compiler warnings (bb #273 )
...
git-svn: trunk@4353
17 years ago
Török Edvin
5a1034b991
fix more compiler warnings (bb #273 ).
...
git-svn: trunk@4349
17 years ago
Török Edvin
b9b477842d
fix compiler warnings, more to come (bb #273 )
...
git-svn: trunk@4346
17 years ago
Török Edvin
deb3031222
mempool statistics support
...
git-svn: trunk@4344
17 years ago
Török Edvin
764f76c841
* clamd/thrmgr.c (thrmgr_printstats, IDLE_TASK): add comments
...
* contrib/clamdtop/TODO: more TODO items
git-svn: trunk@4328
17 years ago
Török Edvin
64cb380717
fix whitespace
...
git-svn: trunk@4327
17 years ago
Török Edvin
6bdb35ea6a
use mdprintf instead of fdopen on socket (bb #1270 ) (thanks to Gianluigi Tiesi <sherpya*netfarm.it>)
...
git-svn: trunk@4325
17 years ago
Török Edvin
aa22174b30
new command STATS
...
new top-like tool using ncurses: clamdtop
it shows what clamd is currently scanning (and since how long),
including which file(s) multiscan is working on currently,
how many items it has in the queue (and since how long they are waiting),
how many active/idle threads it has,
memory usage statistics,
can monitor local or remote clamd
git-svn: trunk@4324
17 years ago
Török Edvin
b8edbb880d
clamd/thrmgr.c: fix valgrind warning (bb #1184 )
...
unit_tests: add more valgrind tests, add a reload and a multiscan test (bb #1092 )
git-svn: trunk@4175
17 years ago
Török Edvin
4a0bd44290
Multiscan queues a lot of scan tasks. If thread_idle wasn't zero when multiscan
...
started queueing, it will only spawn at most one thread, and keep queueing
without spawning more threads (because threads_idle now non-zero), but the idle
thread doesn't get a chance to pick up the tasks.
Fix this by testing whether we have enough idle threads to pick up the items in
the work queue. If there aren't then spawn some more until max limit is reached,
or we have enough idle threads to handle all tasks in the queue.
git-svn: trunk@4066
17 years ago
Török Edvin
4270f93bcc
(bb #913 , #916 )
...
17 years ago
Tomasz Kojm
5a66732fdc
clamd: revert patch from bb#1028 (bb#1113)
...
git-svn: trunk@4029
17 years ago
aCaB
cc4232a3b1
add some missing checks for pthread api calls - bb#384
...
git-svn: trunk@4004
17 years ago
Tomasz Kojm
600a7f2b08
configure, clamd: fix compilation error on systems without pthread_yield() (bb#1058)
...
git-svn: trunk@3910
17 years ago
Tomasz Kojm
22e4ec878a
clamd/thrmgr.c: move some msgs to debug (bb#1028)
...
git-svn: trunk@3882
17 years ago
Tomasz Kojm
04ba76d2cb
minimize memory fragmentation after db reload (bb#1028)
...
git-svn: trunk@3873
17 years ago
Török Edvin
d6df9ffb5a
use pthread_cond_* instead of usleep() in MULTISCAN (bb #758 )
...
enable entconv by default
others.c: fix compiler warning
regex_list.c: remove unused code, because a better solution is scheduled for 0.94 (bb #725 )
git-svn: trunk@3627
18 years ago
aCaB
2455584143
sync to trunk
...
git-svn-id: file:///var/lib/svn/clamav-devel/branches/newlimits@3599 77e5149b-7576-45b1-b177-96237e5ba77b
18 years ago
Török Edvin
efac2f09b7
don't ignore SIGBUS, SIGFPE, SIGILL, and SIGSEGV.
...
POSIX says the behaviour is undefined if they are ignored.
(on HP-UX behaviour was: hang)
make BIGSTACK the default on HPUX
git-svn: trunk@3593
18 years ago
Tomasz Kojm
8ca8a18e2d
drop shared/memory.[ch]
...
git-svn: trunk@2874
19 years ago
Sven Strickroth
a99111f050
remove old CVS-stuff and make the repository look more like SVN
...
git-svn: trunk@2755
19 years ago
Tomasz Kojm
fc83da8244
remove some gcc warnings
...
git-svn: trunk@2701
19 years ago
Tomasz Kojm
7b04a82cef
change stack size at the right place (closes bug#103)
...
git-svn: trunk@2462
19 years ago
Tomasz Kojm
c3b33e5a6e
fix possible memory leaks and improve handling of memory allocation errors (closes bug#75)
...
git-svn: trunk@2455
19 years ago
Tomasz Kojm
85d7001f33
free(threadpool->queue) in thrmgr_destroy, thanks to Edwin
...
git-svn: trunk@2392
19 years ago
Tomasz Kojm
67118e923d
apply w32 patches from NJH
...
git-svn: trunk@2245
19 years ago
Tomasz Kojm
bd8603aae2
code cleanup
...
git-svn: trunk@2235
19 years ago
Tomasz Kojm
48b7b4a747
update GPL headers with new address for FSF
...
git-svn: trunk@1901
19 years ago
Tomasz Kojm
079229d60d
fix some compiler warnings, patch by Stefan Huehner <stefan*huehner.org>
...
git-svn: trunk@1778
20 years ago
Tomasz Kojm
1593523e68
revert the queue limit patch
...
git-svn: trunk@1637
20 years ago
Tomasz Kojm
6d5c43a147
limit the internal queue of requests to MaxConnectionQueueLength
...
git-svn: trunk@1625
20 years ago
Tomasz Kojm
9fa6473439
fix mutex handling
...
git-svn: trunk@1269
21 years ago
Tomasz Kojm
afb48b2813
Big cleanup
...
git-svn: trunk@448
21 years ago
Tomasz Kojm
10b04232a4
added missing new line characters in logg()
...
git-svn: trunk@420
21 years ago
Trog
96f656e65d
*** empty log message ***
...
git-svn: trunk@344
22 years ago
Tomasz Kojm
e6974fa9a3
*** empty log message ***
...
git-svn: trunk@342
22 years ago
Trog
52e8d3c608
thrmgr: new clean reimplementation
...
git-svn: trunk@338
22 years ago
Tomasz Kojm
a9ebff44df
fixed problem with cli_rmdirs() and some small cleanups
...
git-svn: trunk@315
22 years ago
Tomasz Kojm
c238ac42c6
clamd: integrated new thread manager
...
git-svn: trunk@296
22 years ago