[Bro-Dev] [JIRA] (BIT-1408) Broker I/O loop issue
Jon Siwek (JIRA)
jira at bro-tracker.atlassian.net
Thu Jun 4 04:55:01 PDT 2015
[ https://bro-tracker.atlassian.net/browse/BIT-1408?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=20916#comment-20916 ]
Jon Siwek commented on BIT-1408:
--------------------------------
Would that mean that if you have two IOSources, broker and a pktsrc, that the broker IOSource would always be eligible for processing even if it didn't actually have anything to do (since stdin is put into the fd_set for writing, I think that most always triggers the select()) ? That behavior doesn't seem quite right either.
> Broker I/O loop issue
> ---------------------
>
> Key: BIT-1408
> URL: https://bro-tracker.atlassian.net/browse/BIT-1408
> Project: Bro Issue Tracker
> Issue Type: Problem
> Components: Broker
> Reporter: Robin Sommer
> Fix For: 2.4
>
> Attachments: patch.txt
>
>
> This script from Johanna doesn't terminate:
> {code}
> redef exit_only_after_terminate = T;
> event terminate_me() {
> print "terminating";
> terminate();
> }
> event bro_init() {
> BrokerComm::enable();
> schedule 1sec { terminate_me() };
> }
> {code}
> It works once the {{enable()}} call is removed.
> Attached patch seems solve the problem, but it might not be quite the right fix, not sure yet.
--
This message was sent by Atlassian JIRA
(v6.5-OD-05-041#65001)
More information about the bro-dev
mailing list