Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
ASSP.sf.net is an Anti-Spam SMTP Proxy written in perl. It uses IO::Socket::INET and IO::Select to multiplex socket connections from SMTP clients and to the mail transport.

For some reason it's dropping bytes. It's not in my perl code, because it happens at irregular intervals, but one user found this pattern:

There is a pattern to the first bad byte, but I haven't figured it out
yet...

The pattern seems to be based on a 285K byte (291840) cycle

After the first 57 bytes lost the system will:
successfully transfer 291783 bytes 
loose another 57
successfully transfer 291783 bytes 
loose another 57
successfully transfer 291783 bytes 
loose another 57
Etc...etc....

Test .125-meg.mpeg           128000
              Verified OK

Test .25-meg.mpeg            255943
              Missing Bytes, Total Len: 255943
missing: 57  Bytes at Location  141246 
              Verification Failed

Test .5-meg.mpeg             511886
              Missing Bytes, Total Len: 511886
missing: 57  Bytes at Location  187758 
missing: 57  Bytes at Location  479541 
              Verification Failed

Test 1-meg.mpeg              1023829
              Missing Bytes, Total Len: 1023829
missing: 57  Bytes at Location  207651 
missing: 57  Bytes at Location  499434 
missing: 57  Bytes at Location  791217 
              Verification Failed

My question is if there is a socket setting that will improve buffering or provide some other means of making the sockets more robust.

Thanks,
John

update (broquaint): title change (was socket problem)


In reply to socket periodically loses data by jhanna

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others imbibing at the Monastery: (9)
    As of 2014-09-18 23:29 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      How do you remember the number of days in each month?











      Results (126 votes), past polls