Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

Comment on

( #3333=superdoc: print w/replies, xml ) Need Help?? 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

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

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.


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

In reply to socket periodically loses data by jhanna

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, 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
  • 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.
  • Log In?

    What's my password?
    Create A New User
    and all is quiet...

    How do I use this? | Other CB clients
    Other Users?
    Others meditating upon the Monastery: (7)
    As of 2018-02-18 09:31 GMT
    Find Nodes?
      Voting Booth?
      When it is dark outside I am happiest to see ...

      Results (253 votes). Check out past polls.