https://github.com/boostorg/beast/issues/692
| 1188 | |
| 1189 | // https://github.com/boostorg/beast/issues/692 |
| 1190 | void |
| 1191 | testIssue692() |
| 1192 | { |
| 1193 | error_code ec; |
| 1194 | test_parser<false> p; |
| 1195 | p.eager(true); |
| 1196 | string_view s = |
| 1197 | "HTTP/1.1 101 Switching Protocols\r\n" |
| 1198 | "Content-Length: 2147483648\r\n" |
| 1199 | "\r\n"; |
| 1200 | p.put(net::buffer( |
| 1201 | s.data(), s.size()), ec); |
| 1202 | if(! BEAST_EXPECTS(! ec, ec.message())) |
| 1203 | return; |
| 1204 | BEAST_EXPECT(p.is_done()); |
| 1205 | } |
| 1206 | |
| 1207 | //-------------------------------------------------------------------------- |
| 1208 |