Skip to content

Comments

Set FlushInterval when initializing httputil.ReverseProxy#12

Open
edvakf wants to merge 1 commit intotypester:masterfrom
edvakf:reverse_proxy_flush_interval
Open

Set FlushInterval when initializing httputil.ReverseProxy#12
edvakf wants to merge 1 commit intotypester:masterfrom
edvakf:reverse_proxy_flush_interval

Conversation

@edvakf
Copy link

@edvakf edvakf commented Nov 19, 2014

Due to httputil.ReverseProxy's buffering behavior, I have to wait before HTTP 1.1 Transfer-Encoding: chunked response to start being sent. Setting FlushInterval to httputil.ReverseProxy solves this issue.

Hard-coding the flush interval of 500ms may be arguable.

Note: due to martini-contrib/oauth2's incompatible changes, this branch can't be merged to current master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant