Tallboy

Paradise

pineapple.io

Age: 29

Jokes about female bodily functions are not funny. Period.

17h
awarded Socratic
18h
comment Creating an idle timeout in Go?
And as a follow up, now that I'm setting them separately, I can remove ReadTimeout: serverIdleTimeout, from http.Server correct?
18h
comment Creating an idle timeout in Go?
Did I correctly set the timeouts by writing it like this? c.SetReadDeadline(time.Now().Add(time.Duration(config.DownstreamIdleTimeoutMs) * time.Millisecond)) where config.DownstreamIdleTimeoutMs is an int, say 2500 for instance?
21h
accepted Creating an idle timeout in Go?
21h
comment Creating an idle timeout in Go?
Oooo interesting. Thank you! Let me investigate.
21h
revised Creating an idle timeout in Go?
added 467 characters in body
22h
revised Creating an idle timeout in Go?
added 467 characters in body
22h
comment Creating an idle timeout in Go?
This fixes the upstream issue but we’d also like to not potentially cut off an active uploader.
22h
comment Creating an idle timeout in Go?
I'm using httputil.NewSingleHostReverseProxy to construct a proxy, which exposes transport options but only for the upstream. The problems I am having are downstream, they need to be set on the http.Server object that uses the ReverseProxy as a handler. http.Server does not expose transport.
1d
asked Creating an idle timeout in Go?
Mar
25
comment Automatic closing brackets for Vim
You don't need that keybinding if you just set let g:delimitMate_expand_cr = 2
Mar
24
awarded Popular Question
Mar
21
comment How to start setInterval loop immediately?
Nice, I like this. Never thought of doing it like this.
Mar
21
awarded Popular Question
Mar
15
comment Setting up Rails model for bookmarks
Interesting. Thanks for the answer. I completely rewrote my question because it was messy but I see what you mean. So you think it's reasonable here not to use through,as or source? I've been trying to do things the rails way ™
Mar
15
accepted Setting up Rails model for bookmarks
Mar
15
revised Setting up Rails model for bookmarks
deleted 235 characters in body
Mar
15
revised Setting up Rails model for bookmarks
added 39 characters in body
Mar
15
asked Setting up Rails model for bookmarks
Mar
5
awarded Nice Question
1 2 3 4 5