Skip to content

Commit 2980c1f

Browse files
committed
bugfix 712252
1 parent 600d39c commit 2980c1f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

Release/src/http/listener/http_linux_server.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -203,9 +203,7 @@ void connection::handle_headers()
203203
m_chunked = boost::ifind_first(name, U("chunked"));
204204
}
205205

206-
Concurrency::streams::producer_consumer_buffer<uint8_t> buf;
207-
m_request._get_impl()->set_instream(buf.create_istream());
208-
m_request._get_impl()->set_outstream(buf.create_ostream(), false);
206+
m_request._get_impl()->_prepare_to_receive_data();
209207
if (m_chunked)
210208
{
211209
boost::asio::async_read_until(*m_socket, m_request_buf, CRLF, boost::bind(&connection::handle_chunked_header, this, placeholders::error));
@@ -534,6 +532,7 @@ void connection::handle_response_written(http_response response, const boost::sy
534532

535533
void connection::finish_request_response()
536534
{
535+
//usleep(100000);
537536
// kill the connection
538537
{
539538
pplx::scoped_lock<pplx::extensibility::recursive_lock_t> lock(m_p_parent->m_connections_lock);

Release/tests/Functional/http/listener/request_stream_tests.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace tests { namespace functional { namespace http { namespace listener {
2828
SUITE(request_stream_tests)
2929
{
3030

31-
TEST_FIXTURE(uri_address, large_body, "Ignore:Linux", "712252")
31+
TEST_FIXTURE(uri_address, large_body)
3232
{
3333
http_listener listener(m_uri);
3434
listener.open().wait();

0 commit comments

Comments
 (0)