Server Sent Events behind Google Cloud HTTP Load Balancer terminated after 30 seconds

1,443 views
Skip to first unread message

Johan Haleby

unread,
Nov 26, 2015, 8:10:26 AM11/26/15
to gce-discussion
We have a service that sends server sent events to connected clients. This service is deployed to GCE and is placed behind a Google Cloud HTTP Load Balancer. The problem is that the connection is terminated after about 30 seconds. This was never a problem when we ran behind nginx. In curl it looks like this:

ping:
ping:
ping:
ping:
ping:
ping:
ping:
curl: (18) transfer closed with outstanding read data remaining

Is there anyway to increase the LB termination timeout or disabling it altogether? I've tried searching the docs but I can't seem to find anything regarding this topic.

/Johan

Kamran (Google Cloud Support)

unread,
Nov 27, 2015, 5:36:40 PM11/27/15
to gce-discussion

Hi Johan,

Did you try to increase the timeout value of HTTP Load Balancer's backend service? This value by default is 30 seconds. Please visit this article for more information about backend service's TIMEOUT.

Sincerely,

Kamran
Reply all
Reply to author
Forward
0 new messages