| 543 | } |
| 544 | |
| 545 | int ProtocolHttp2::parsePing(const ProtoRequestHttp2 *request, |
| 546 | QIODevice *io, |
| 547 | const H2Frame &fr) const |
| 548 | { |
| 549 | // qCDebug(C_SERVER_H2) << "Got PING" << fr.flags; |
| 550 | if (fr.len != 8) { |
| 551 | return sendGoAway(io, request->maxStreamId, ErrorFrameSizeError); |
| 552 | } else if (fr.streamId) { |
| 553 | return sendGoAway(io, request->maxStreamId, ErrorProtocolError); |
| 554 | } |
| 555 | |
| 556 | if (!(fr.flags & FlagPingAck)) { |
| 557 | sendPing(io, FlagPingAck, request->buffer + 9, 8); |
| 558 | } |
| 559 | return 0; |
| 560 | } |
| 561 | |
| 562 | int ProtocolHttp2::parseRstStream(ProtoRequestHttp2 *request, |
| 563 | QIODevice *io, |
nothing calls this directly
no outgoing calls
no test coverage detected