Skip to content

Commit

Permalink
Issue fabiolb#129: Support for server-sent events (SSE)
Browse files Browse the repository at this point in the history
Original PR fabiolb#130 by @madeddie

This patch adds a proxy.flushinterval option which
enables periodic flushing of the repsonse buffer.

Since this is a global option and the implications on
non-streaming HTTP requests are unknown the current
implementation limits the use of the flush interval to
requests where the 'Accept' header is set to
'text/event-stream' which identifies SSE requests.

This is really a route specific option and should be
configured as such once this becomes possible.
  • Loading branch information
magiconair authored and ptqa committed Jan 13, 2017
1 parent 0e28e78 commit 2bf25aa
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions fabio.properties
Original file line number Diff line number Diff line change
Expand Up @@ -313,14 +313,17 @@
# proxy.dialtimeout = 30s


# proxy.flushinterval configures periodic flushing of the
# response buffer for SSE (server-sent events) connections.
# They are detected when the 'Accept' header is
# 'text/event-stream'.
# proxy.flushinterval configures periodic flushing of
# the response buffer. The default is not to flush
# the response buffer periodically.
#
# The current implementaiton exists to support SSE
# (server-sent events) and sets the value only when
# the 'Accept' header is 'text/event-stream'.
#
# The default is
#
# proxy.flushinterval = 1s
# proxy.flushinterval = 0s


# proxy.maxconn configures the maximum number of cached
Expand Down

0 comments on commit 2bf25aa

Please sign in to comment.