79676410

Date: 2025-06-23 15:27:49
Score: 1.5
Natty:
Report link

Set the write deadline in the /reports/* handlers using a response controller.

For example, add this line to the handler to set the timeout to 10 minutes:

 http.NewResponseController(rw).SetWriteDeadline(time.Now().Add(10 * 60 * time.Second)

The idle timeout is not relevant to your problem.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Jasmine Crockett