This bug is reported in full on the HtmlUnit defect queue at http://sourceforge.net/tracker/index.php?func=detail&aid=1753734&group_id=47038&atid=448266
On a heavily loaded server behind reverse proxies and firewalls (think
large corporate site) the RST command may arrive after the client attempts
to read from the socket.
the HtmlUnit default action is different than the documented...
On a heavily loaded server behind reverse proxies and firewalls (think large corporate site) the RST command may arrive after the client attempts to read from the socket.
You may take a look at RFC 1122 ( http://www.faqs.org/rfcs/rfc1122.html )
section 4.2.2.13 Closing a Connection:
"A host MAY implement a "half-duplex" TCP close sequence, so
that an application that has...