Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix the Unreal Plugin's GetGameServer #1581

Merged
merged 2 commits into from
May 26, 2020
Merged

Fix the Unreal Plugin's GetGameServer #1581

merged 2 commits into from
May 26, 2020

Conversation

dotcom
Copy link
Contributor

@dotcom dotcom commented May 21, 2020

What type of PR is this?

Uncomment only one /kind <> line, hit enter to put that in a new line, and remove leading whitespace from that line:

/kind breaking

/kind bug

/kind cleanup
/kind documentation
/kind feature
/kind hotfix

What this PR does / Why we need it:

The fix is extremely simple.

first commit :
I think the point where OnProcessRequestComplete().BindLambda() after SendRequest() is done needs to be fixed.(In GetGameServer())
https://github.com/googleforgames/agones/compare/master...dotcom:master?diff=split#diff-80dbe36c10c363357ae5c22ced334ea2L151

For implementers who want to add more processing to the Request, I have split the processing.

second commit:
We should check whether the request is acceptable or not with EHttpResponseCodes::IsOk

Once review has occurred, please rebase your PR down to a single commit. This will ensure a nice clean Git history.

I'm separating the commits for two different fixes, but squash them as needed.

I'd like further comments from people who are familiar with UE4.

Thank you.

@agones-bot
Copy link
Collaborator

Build Succeeded 👏

Build Id: c61d9100-9ab1-4eae-84b2-8bc007efaf3f

The following development artifacts have been built, and will exist for the next 30 days:

A preview of the website (the last 30 builds are retained):

To install this version:

  • git fetch https://github.com/GoogleCloudPlatform/agones.git pull/1581/head:pr_1581 && git checkout pr_1581
  • helm install ./install/helm/agones --namespace agones-system --name agones --set agones.image.tag=1.6.0-8d5fc95

@WVerlaek
Copy link
Contributor

LGTM, interesting that the order of BindLambda needed to change, I don't think we noticed any issues there. But the changes look sensible, especially checking the response code for errors

@dotcom
Copy link
Contributor Author

dotcom commented May 21, 2020

@WVerlaek
Thank you for checking.
BindLambda after SendRequest seems to register the callback after execution, but I think it's safe when HttpThread works as a FSingleThreadRunnable. (This would be handled when Tick in the HttpThread is called.) However, in the case of FRunnable, I think this is not safe. (Please correct me if I'm wrong.)
But I'm not sure where it actually has a branch to treat HttpThread as FSingleThreadRunnable or FRunnable.

@roberthbailey
Copy link
Member

@markmandel - how do you feel about squeezing in this bug fix right before the release cut?

Copy link
Member

@markmandel markmandel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@markmandel - how do you feel about squeezing in this bug fix right before the release cut?

SGTM, let's do it.

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: dotcom, markmandel

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@markmandel markmandel merged commit 91fa304 into googleforgames:master May 26, 2020
@markmandel markmandel added this to the 1.6.0 milestone May 26, 2020
@markmandel markmandel added area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc kind/bug These are bugs. labels May 26, 2020
ilkercelikyilmaz pushed a commit to ilkercelikyilmaz/agones that referenced this pull request Oct 23, 2020
* separate MakeRequest and SendRequest

* Handle response code in GetGameServer
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved area/user-experience Pertaining to developers trying to use Agones, e.g. SDK, installation, etc kind/bug These are bugs. lgtm size/M
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants