mirror of
https://github.com/ton-blockchain/ton
synced 2025-03-09 15:40:10 +00:00
bugfixes + doc update
This commit is contained in:
parent
77842f9b63
commit
1de39f5d7c
44 changed files with 652 additions and 272 deletions
|
@ -149,6 +149,10 @@ void HttpConnection::continue_payload_write() {
|
|||
if (!writing_payload_) {
|
||||
return;
|
||||
}
|
||||
if (writing_payload_->is_error()) {
|
||||
stop();
|
||||
return;
|
||||
}
|
||||
|
||||
auto t = writing_payload_->payload_type();
|
||||
if (t == HttpPayload::PayloadType::pt_eof) {
|
||||
|
@ -233,7 +237,11 @@ td::Status HttpConnection::continue_payload_read(td::ChainBufferReader &input) {
|
|||
return td::Status::OK();
|
||||
}
|
||||
auto s = input.size();
|
||||
TRY_STATUS(reading_payload_->parse(input));
|
||||
auto R = reading_payload_->parse(input);
|
||||
if (R.is_error()) {
|
||||
reading_payload_->set_error();
|
||||
return R.move_as_error();
|
||||
}
|
||||
if (input.size() == s) {
|
||||
return td::Status::OK();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue