I am having strange problem. I am running RH 7.3 2.4.23-V120203Gen #1. I have perl 5.6.1 installed and i believe my version of IO::Socket::INET is 1.27. This machine is serving as a syslog server recieving ALOT of syslog messages. I discovered that quite a few of the syslog msgs are missing when I write them to a file. I decided to not even write anything to file to eliminate IO write issues. Right now I am simply recv'ing on a socket and I get the following. Is there some sort of limit on how much data a socket can handle recv'ing. Would writing this in C/C++ make any difference??
#!/usr/bin/perl -w use IO::Socket::INET; my $sock = IO::Socket::INET->new( LocalAddr => 'loghost', LocalPort => 514, Proto => 'udp', Listen => '5' ) or die "Cant establish socket"; my $data = ''; while ( 1 ) { my $from_who = recv( $sock, $data, 1450, 0 ) || warn "Problem +with recv: $!\n"; }
bash-2.05a$ sudo ./sockettest.pl Problem with recv: Resource temporarily unavailable Problem with recv: Resource temporarily unavailable Problem with recv: Resource temporarily unavailable Problem with recv: Resource temporarily unavailable Problem with recv: Resource temporarily unavailable Problem with recv: Resource temporarily unavailable

In reply to UDP Socket: Resource temporarily unavailable by atistler

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.