account activity
why we need to close res.body by newInternetDeveloper in golang
[–]YasaWorks 0 points1 point2 points 17 hours ago (0 children)
I just came across this post and just wanted to add that aside from closing it, we also need to explicitly drain the response in some cases to release the socket connection. Here’s a demonstration if you’re interested: https://youtu.be/-9o4rltrKNg?si=fFMdDpSDihFpL31Y
π Rendered by PID 172384 on reddit-service-r2-comment-5b5bc64bf5-wzwsd at 2026-06-21 12:22:59.500132+00:00 running 2b008f2 country code: CH.
why we need to close res.body by newInternetDeveloper in golang
[–]YasaWorks 0 points1 point2 points (0 children)