1
0
mirror of https://github.com/stefanocasazza/ULib.git synced 2025-09-28 19:05:55 +08:00

Update http2.cpp

This commit is contained in:
Victor Stewart 2020-02-24 17:14:04 -05:00 committed by GitHub
parent 8be45f2429
commit 44f0e09596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3800,17 +3800,8 @@ void UHTTP2::sendGoAway(USocket* psocket)
u_write_unalignedp32(ptr+ 9,pConnection->max_processed_stream_id);
u_write_unalignedp32(ptr+13,nerror);
#ifdef GCC_IS_GNU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wunused-variable"
#endif
const char* descr = getFrameErrorCodeDescription(nerror);
#ifdef GCC_IS_GNU
#pragma GCC diagnostic pop
#endif
if (nerror) U_SRV_LOG("send GOAWAY frame with error (%u, %s)", nerror, descr);