No timeout mechanism with the Request.Body.Read

89 views
Skip to first unread message

Song Liu

unread,
Sep 27, 2016, 9:20:32 AM9/27/16
to golang-nuts

http.Server.ReadTimeout is per the whole Read quest, but I need the timeout for a single Request.Body.Read.


What need to do ? thanks.

Xie Yuchen

unread,
Jan 4, 2023, 2:07:40 AM1/4/23
to golang-nuts
You could try SetDeadline with a short time span. The group mentioned it before, IIRC.
Reply all
Reply to author
Forward
0 new messages