MCPcopy Create free account
hub / github.com/cutelyst/cutelyst / parsePing

Method parsePing

Cutelyst/Server/protocolhttp2.cpp:545–560  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543}
544
545int 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
562int ProtocolHttp2::parseRstStream(ProtoRequestHttp2 *request,
563 QIODevice *io,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected