I believe this is a test bug, I think what is happening is the winrt http client behaves differently is and is causing the connection to be closed before the server is actually shutting down.
I'm able to reproduce with Dev11 and Dev12 winrt
Running test cases in HttpClient110_test.winrt.dll...
Starting test case request_stream_tests:stream_close_early_with_contentlength...
..\request_stream_tests.cpp(304): error: Failure in stream_close_early_with_cont
entlength: CHECK_EQUAL(0, result) where 0=0 and result=1
FAILED
We should probably add better error handling support to our test server for http client test cases that need to handle errors more gracefully.
Comments: Several of the stream close early tests are disabled for this bug, not just that one.
I'm able to reproduce with Dev11 and Dev12 winrt
Running test cases in HttpClient110_test.winrt.dll...
Starting test case request_stream_tests:stream_close_early_with_contentlength...
..\request_stream_tests.cpp(304): error: Failure in stream_close_early_with_cont
entlength: CHECK_EQUAL(0, result) where 0=0 and result=1
FAILED
We should probably add better error handling support to our test server for http client test cases that need to handle errors more gracefully.
Comments: Several of the stream close early tests are disabled for this bug, not just that one.