Skip to content

Calling WatchGameServer via websocket stopped working in v1.50 #4248

@mruediger

Description

@mruediger

What happened:
We had issues using the Unreal Engine SDK after updating to v1.51. While debugging, we found out that calling the /watch/gameserver endpoint on the sdk-server via a websocket succeeds in v1.49 and returns a gameserver object. From version v1.50 onward the request times out. Using http, everything works fine.

What you expected to happen:
That a request against the /watch/gameserver endpoint works via websockets and returns a gameserver object.

How to reproduce it (as minimally and precisely as possible):

Checkout version v1.49 and start the sdk-server locally using go run cmd/sdk-server/main.go --local and fire up a request via curl using the following snippet:

  curl -iv \
       -H "Connection: Upgrade" \
       -H "Upgrade: websocket" \
       -H "Sec-WebSocket-Key: ExampleKey1234567890===" \
       -H "Sec-WebSocket-Version: 13" -X GET http://localhost:9358/watch/gameserver

Do the same after checking out v1.50 or v1.51 and the above command wont return.

Anything else we need to know?:

  • Agones version: v1.49, v1.50 & v1.51
  • Kubernetes version (use kubectl version): none
  • Cloud provider or hardware configuration: none
  • Install method (yaml/helm): none

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions