adamfisk / LittleProxy

High performance HTTP proxy originally written by your friends at Lantern and now maintained by a stellar group of volunteer open source programmers.

Home Page:https://www.getlantern.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

If idleConnectionTimeout is exceeded no response is returned

robfletcher opened this issue · comments

I would expect to get a 504 but instead the connection is just terminating. Is there another way to specify the time the proxy should wait for a response from the target server?

@robfletcher Good catch.

As for setting the timeout - I believe that the option you want is HttpProxyServerBootstrap.withIdleConnectionTimeout()

That's what I'm using. Just wanted to check it's the right thing.

Yep. I think as part of fixing the missing 504 I might break this into two settings, one for inbound and one for outbound connections.