Skip to content

Commit

Permalink
reduce can_read() check to a half second
Browse files Browse the repository at this point in the history
  • Loading branch information
mrash committed Mar 15, 2015
1 parent fdbf78d commit 7f287f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion psad
Expand Up @@ -817,7 +817,7 @@ MAIN: for (;;) {

### Get any new packets have been written to syslog
if ($config{'ENABLE_FW_MSG_READ_CMD'} eq 'Y') {
if ($s->can_read(1)) {
if ($s->can_read(.5)) {
my $syslog_line = <$fwdata_fh>;
$fwdata_fh->flush();
push @fw_packets, $syslog_line unless $fw_msg_read_continue;
Expand Down

0 comments on commit 7f287f1

Please sign in to comment.