SSL & unclean shutdown response

When the server responds without "Content-Length" and ssl connection is closed without close_notify alert, the StreamCopier can't perform a buffered copy from stream. It works when i use an unbuffered copy.

SSL specification says: "Each party is *required* to send a close_notify alert before closing", but some gateways, load-balancers and servers don't respect that.