Skip to content

Commit

Permalink
Clear fallback on Http breaks
Browse files Browse the repository at this point in the history
  • Loading branch information
uNetworkingAB committed Mar 2, 2021
1 parent ca6d4e3 commit 4e4fd20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/HttpParser.h
@@ -1,5 +1,5 @@
/*
* Authored by Alex Hultman, 2018-2020.
* Authored by Alex Hultman, 2018-2021.
* Intellectual property of third-party.
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -323,6 +323,7 @@ struct HttpParser {
// break here on break
std::pair<unsigned int, void *> consumed = fenceAndConsumePostPadded<true>(fallback.data(), (unsigned int) fallback.length(), user, reserved, &req, requestHandler, dataHandler);
if (consumed.second != user) {
fallback.clear();
return consumed.second;
}

Expand Down

0 comments on commit 4e4fd20

Please sign in to comment.