logo
episode-header-image
Oct 2025
25m 49s

Graceful shutdown in HTTP

Hussein Nasser
About this episode


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


Up next
Oct 22
Developers will be prompters (and that is bad)
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. 
9m 26s
Oct 15
AI will not replace elite engineers
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 
56m 28s
Sep 25
Engineers will be out of the 'Loops'
I discuss loops engineering and how it will numb creative thinking and critical system design for engineers. 
12m 58s
Recommended Episodes
Mar 2019
Hacking
This episode is about hacking. 
10m 9s
Jun 2025
Hiding in plain sight with vibe coding.
This week, Dave is joined by ⁠Ziv Karliner⁠, ⁠Pillar Security⁠’s Co-Founder and CTO, sharing details on their work on "New Vulnerability in GitHub Copilot and Cursor: How Hackers Can Weaponize Code Agents." Vibe Coding - where developers use AI assistants like GitHub Copilot and ... Show More
21m 49s
Aug 2022
Talos Takes Ep. #72: Emergency Apache HTTP Server episode
<div>Sorry for dropping two episodes in the feed in one day, but we also needed to find time to talk about the critical zero-day vulnerability in Apache HTTP Server. An attacker could exploit this vulnerability to perform path traversal and eventually remote code execution. Patch ... Show More
5m 5s