madscientist
6978ec4c3f
Corrected bug where Hold action cannot complete because the reader is not available. Previous "improvement" was based on a bad assumption that responses were emitted during the job. Actually, responses are emitted after the job is finalized and sent to the output processor so that theory was incorrect. Earlier problem was related to something else & this code was ok.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@57 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
11 years ago
madscientist
0c49c83aa6
Minor revision tick.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@56 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
11 years ago
madscientist
5279129279
Bug fix: doFile now closes message reader immediately after scan so that the file is not open when CGP resumes processing.
Cleanup: Clarified code in output processor to avoid confusion about the (J = CompletedJobs.take()) assignment while waiting for a 0.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@55 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
11 years ago
adeniz
107979a5c3
Remove non-source files from source directories.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@54 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
11 years ago
adeniz
826bcdb9cf
Not needed because the LabRats run "autoreconf --install".
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@53 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
12 years ago
adeniz
c5c18db997
Added so that software from the repository can be built without
running autoreconf.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@52 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
13 years ago
madscientist
f0fb9225aa
Fixed bug where Reject action told CGP REJECTED. Quixotically CGPs API indicates that to Reject a message it needs to see ERROR, and that when it sees REJECTED message processing is actually postponed. A look at CGP logs indicates that REJECTED messages are scanned again later.
Added Postpone action which allows SNF4CGP to exercise CGPs REJECTED response.
Updated SNF4CGP revision numbers appropriately.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@51 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
14 years ago
madscientist
b1d5a74b4c
Improved default snf_engine.xml.sample.in
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@50 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
14 years ago
madscientist
96852c9546
Updated snf_engine.xml.sample.in to include XML extensions (XSL/CSS)
Updated snf_engine.xml.sample.in for new default configuration
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@49 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
14 years ago
adeniz
7bd623aa7d
Changed version from 0.1.0 to 0.1.2 to match name of tarball.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@48 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
14 years ago
madscientist
aa7601fc0a
Simplified default configuration file path logic
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@47 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
adeniz
c3dbdd76e4
Default config file is now snf_milter.xml in the same directory as the
executable.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@46 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
adeniz
3b2dc7305c
Implemented default config file. Tested under Ubuntu; need to test
under Windows.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@45 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
adeniz
3f47061355
Changed log and startup message prefix from "SNF4CGP" to "CGPSNF".
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@44 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
adeniz
2e034a757e
Initial revision.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@43 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
adeniz
54f2ac7c54
Initial revision. This files is used for building the *nix package.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@42 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
adeniz
0a9d4beabc
Updated config files for CommuniGate.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@41 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
adeniz
4275f5bfb4
Renamed SNF4CGP.xml.sample.in to snf_engine.xml.sample.in
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@40 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
adeniz
44ca7ac75b
Initial revision.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@39 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
b8bbba509e
Fixed extra qualifier string Job::ScanName(); in JobPool.hpp
Fixed backslashes in header paths in ConfigurationEngine.cpp
Moved version number to 0.1.0 (First Official Beta)
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@38 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
76fbc60db3
Changed revision number (missed it in last commit)
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@37 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
6677ba8387
Fixed bug - PlatformVersion was not reported. PlatformVersion is now propagated through the initialization sequence to the scanner pool and ultimately the rulebase so it can be reported properly.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@36 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
16f5e640f4
Cleaned up some logical expressions for clarity.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@35 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
1f9713514c
Fixed potential race condition where the ExecutiveProcess might send a notification message through cout while the OutputProcessor was busy using cout also. The result would be (at best) corrupted output. Now the ExecutiveProcess and the OutputProcessor both use OutputProcessor::sendString() which protects cout with a mutex.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@34 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
67a3f85926
Fixed bad cin bug - if cin went bad the executive process would loop, rapidly generate UNKNOWN commands, and produce FAILURE outputs. This would happen when CGP was disabling the plugin (Specs say the plugin should get QUIT first, but it didn't). The fix creates a new Command::NOTGOOD that is produced by getCommand() if cin.good() becomes false. The executive process responds to Command::NOTGOOD by announcing the input has gone bad and then shutting down cleanly.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@33 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
6fabcf96d3
Created Misc directory
Populated Misc directory with architectural notes
Populated Misc directory with a sample configuration
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@32 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
14e9da2854
Completed ConfigurationEngine
Cleaned up for production testing
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@31 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
3493f12b56
Refactored command comment reporting
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@30 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
f7fc41fee1
Completed doMove() logic with and without header injection
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@29 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
727b31b9b0
Added temporary code for testing Actions during FILE command
Completed Bypass Action
Completed Allow Action
Completed Reject Action
Completed Delete Action
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@28 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
3f7198f89a
Added file release to Job::finalize()
Improved shutdown reporting
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@27 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
566a593b83
Refactored exception handling and reporting.
Began implementing the Configuration Engine.
Began implementing the message move mechanism.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@26 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
105cc56b2f
Re-factored for multiplexed configuration access and cycle stealing updates.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@25 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
7180b0d31d
Added CGP string formatting
Added all command features except FILE
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@24 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
d38973aa63
Corrected shutdown deadlock in Workers.
Completed WAKE process.
It's Alive! Starts, WAKEs, QUITs.
Now it needs a brain (how to do jobs).
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@23 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
27aafa90e0
Added guts to JobPool
Added safety to ScannerPool and WorkerPool
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@22 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
182de1201d
Added utility method skeleton to Job class.
Built a bit more of Job class guts.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@21 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
2111d2b112
Added clearJob()
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@20 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
2005147208
Filled in ScannerPool (Completed?)
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@19 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
e9131c36d5
Sketched in ScannerPool.cpp
Successfully compiled & linked skeleton app :-)
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@18 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
46123c5a75
JobPool.cpp Skeleton.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@17 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
90075fc40c
Refactored a bit to solve circular references in module includes.
Fixed some compiler errors.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@16 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
fba5c00979
Fleshed out WorkerPool.cpp
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@15 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
2ace5f1f8a
Filled in OutputProcessor.cpp
Thread states for WorkerPool
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@14 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
27a8a4a5f6
Cleaned up ExecutiveProcess constructor.
Sketched in ExecutiveProcess::dispatchCommand.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@13 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
22b1be6bb0
Fleshed out WorkerPool.hpp.
Added Started flags to WorkerPool and JobPool.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@12 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
61e3c9e6af
Reworked and cleaned up allocation and initialization paradigm.
Fleshed out JobPool and ScannerPool.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@11 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
7033ed247f
Polished ScannerPool - added some missing pieces.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@10 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
078b881807
Fleshed out ExecutiveProcess a bit more.
Skeleton for InputProcessor
Skeleton for ScannerPool
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@9 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago
madscientist
2defaf86c6
Simplified architecture -- removed CommandProcessor module.
git-svn-id: https://svn.microneil.com/svn/SNF4CGP/trunk@8 59e8e3e7-56fa-483b-b4b4-fa6ab0af3dfc
15 years ago