0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-25 15:04:10 +01:00

ircd::resource::response::chunked: Eliminate move semantic.

This commit is contained in:
Jason Volk 2019-02-28 16:25:39 -08:00
parent 70173f5893
commit 9c20d49e33
3 changed files with 4 additions and 11 deletions

View file

@ -52,7 +52,7 @@ struct ircd::resource::response::chunked
chunked(client &, const http::code &, const vector_view<const http::header> &, const size_t &buffer_size = default_buffer_size);
chunked(client &, const http::code &, const size_t &buffer_size = default_buffer_size);
chunked(const chunked &) = delete;
chunked(chunked &&) noexcept;
chunked(chunked &&) = delete;
chunked() = default;
~chunked() noexcept;
};

View file

@ -754,13 +754,6 @@ catch(const std::exception &e)
// resource::response::chunked
//
ircd::resource::response::chunked::chunked(chunked &&other)
noexcept
:c{std::move(other.c)}
{
other.c = nullptr;
}
ircd::resource::response::chunked::chunked(client &client,
const http::code &code,
const size_t &buffer_size)

View file

@ -140,15 +140,15 @@ ircd::m::sync::handle_get(client &client,
// When shortpoll was successful, do nothing else.
if(shortpolled)
return response;
return {};
if(longpoll::poll(data, args))
return response;
return {};
// A user-timeout occurred. According to the spec we return a
// 200 with empty fields rather than a 408.
empty_response(data);
return response;
return {};
}
void