I have a strange problem with perl clients to web service at work.

The service serves large files to windows clients running on many windows versions. The perl client under windows downloads the files using LWP. For historical reasons there are lots of different Perl versions. The server is either Perl + Mason + Apache2 or Python Tornado without a web server, in both cases inside a Docker container.

I have discovered that on recent windows versions, if the client is running Perl 5.24.0 or older, then on some occasions data sent from the Python server is lost, while apparently identical data from the Perl + Mason server arrives correctly. It looks like the http request is sent correctly, the server sends the reply, but the client does not receive it. I suspect that there is some sort of buggy interaction between Perl and the windows TCP/IP stack, but I don’t really know.

If I upgrade Perl to 5.24.1, then the bug disappears. I have observed this with both the Strawberry and Active State distributions of Perl.

So I am trying to work out what changed in the windows networking between the 5.24.0 and 5.24.1 versions of Perl. Naturally I have read the relevant perldelta, but I can’t see any changes that look likely, I have also looked at the source code diff in git, but there are too many changes to read easily, and as far as I can tell, no windows specific changes. I can’t find a list of bugs closed in 5.24.1.

Any ideas what the significant change is? If you could point me to a bug that was closed in 5.24.1 then that would be great.


In reply to Windows networking changes in perl 5.24.1 by chrestomanci

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.