Re: [go-nuts] Re: What is a good way to implement idle read timeout in service

2022-09-15 Thread Himani Arora
Thanks for the solution I want to know what I need to add in my code other than the library mentioned on top. How can I add the implementation in my code? I have a TCP connection and would want to do something with setdeadline class only. Regards, Himani Arora On Thu, Sep 15, 2022 at 5:39 AM 文以

[go-nuts] What is a good way to implement idle read timeout in service

2022-09-14 Thread Himani Arora
I'm implementing a service in Go where I receive a potentially long-running file upload from a user. I want to time out if I do not receive data from the user for more than a few seconds, but as long as I'm receiving data I want the request to continue indefinitely. What's the best way to do thi