The Backend Engineering Show with Hussein Nasser

Graceful shutdown in HTTP

The Backend Engineering Show with Hussein Nasser

Show Notes

There are cases where the backend may need to close the connection to prevent unexpected situations, prevent bad actors or simply just free up resources. Closing a connection gracefully allows clients and backends to clean up and finish any pending requests.

In this episode of the backend engineering show I discuss graceful connections in both HTTP/1.1 via the connection header and HTTP/2 via the GOAWAY frame.

0:00 Intro 4:58 Why shutdown connection? 6:46 HTTP/1.1 Graceful shutdown 12:26 Cost of HTTP/2 17:40 HTTP/2 GoAWAY frame 23:40 Summary

Links https://www.youtube.com/watch?v=fVKPrDrEwTI&t=1s https://chromium.googlesource.com/chromium/src/net/%2B/master/socket/client_socket_pool_manager.cc#76 https://issues.chromium.org/issues/40555364 https://issues.chromium.org/issues/40501721

More from The Backend Engineering Show with Hussein Nasser

Oct 22, 2026

I discuss the state of what will be happening in the coming few years and why I encourage the 3 of you who want to be elite engineers to keep their critical thinking sharp. To pause and think before prompting.

Oct 15, 2026

This is a conversation with Rashed Hasan, a PhD Candidate from the University of Nebraska. We chatted about databases, ORMs and how to use AI without losing yourself. Rashed pagehttps://www.mdrashedulhasan.me/homepage

Sep 25, 2026

I discuss loops engineering and how it will numb creative thinking and critical system design for engineers.

Sep 18, 2026

I like SQL but the standard should have included ways to hint instead of the abstraction of "let me do it for you"

Sep 11, 2026

In this episode I explore why you should take some time to examine the operation you are caching before doing so. And why caching is a cop-out

See all episodes →