I find during stress testing that I'm missing some syslogs(roughly 5%). I'm assuming this is because of the time taken to process the statements after the recv().my $MySocket=new IO::Socket::INET->new(LocalPort=>$listenport,Proto=>' +udp'); while(1) { #receive syslog $MySocket->recv(my $text,1500); #some logging statements #put it in a queue $MyQueue->enqueue($text); }
I think receiving the syslog and enqueing it in the same line of code would help. Any ideas on how to go about this? Any suggestions/comments are welcome.
Thanks in advanceIn reply to Need help with Socket recv by gautam
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |