ipf
ipf copied to clipboard
Increase Robustness of AsynchronousAuditMessageQueue with TLSSyslogSender
Increase Robustness of AsynchronousAuditMessageQueue with TLSSyslogSender
The TLSSyslogSender use the blocking Socket API of java. We have experienced in the field, that blocking situation still might still occure and endless block the processing.
As part of this issue the following improvement will be provided:
- Support for a timeout handling through a TimeoutThreadPoolExecutor to prevent endless blocking calls.
- Slighly increase the TCP write buffer in TLSSyslogSenderImpl to better handle larger ATNA messages.
- Log ATNA message trace Before sending, so we have the chance to identify which message might cause an issue.
- Provide an more simplified option for creating a AsynchronousAuditMessageQueue with some useful default executor settings. (Since TLSSyslogSenderImpl is not supporting multi-threading, a default of one worker thread was defined).