question

Heartman avatar image
Heartman asked

Control Playfab Party timeout

Hi,

We are running into the issue of Playfab Party connections timing out when we are debugging code and halting at a breakpoint for a some time. Is there a way to control this timeout?

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Heartman avatar image
Heartman answered

C++, we just break using Visual Studio breakpoints

It is in existing code we inherited

4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Sarah Zhang avatar image Sarah Zhang commented ·

We reproduced this behavior in the C++ sample. It seems that it is not a connection timeout, but some kind of active disconnecting mechanism. Not sure whether it can be controlled with API or other methods. We will communicate this problem with the team.

0 Likes 0 ·
Heartman avatar image Heartman Sarah Zhang commented ·

Thank you Sarah!

0 Likes 0 ·
John Emerson avatar image John Emerson Sarah Zhang commented ·

Any progress on this? Being able to debug multiplayer clients without disconnecting them is quite useful. Is this feature implemented, or is it on a roadmap?

0 Likes 0 ·
kalle-sjostrom avatar image kalle-sjostrom Sarah Zhang commented ·

I'm also wondering if there is an update on this. I'm using VS & C++, and a breakpoint more than 10-15 seconds will disconnect.

0 Likes 0 ·
Sarah Zhang avatar image
Sarah Zhang answered

You can set the timeoutInMilliseconds field using this struct PartySendMessageQueuingConfiguration. For more details, please check the documentation.

2 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Heartman avatar image Heartman commented ·

That didn't work, the endpoint still gets destroyed:

PartyEndpointDestroyedStateChange: failed to establish or maintain a connection to a network or remote peer

Also the default is to wait forever anyway:


"A timeoutInMilliseconds value of zero indicates that there should be no timeout and that the message should remain queued until it is either successfully transmitted, is explicitly canceled, or encounters some transmission failure such as remote disconnection. Zero is the default when no PartySendMessageQueuingConfiguration structure is provided to PartyLocalEndpoint::SendMessage()."

0 Likes 0 ·
Sarah Zhang avatar image Sarah Zhang Heartman commented ·

We can't reproduce this behavior. Could you please provide the detailed scenario? Which development language do you use? Did you use a Party sample? How you set the breakpoints?

0 Likes 0 ·
Matias Pedro avatar image
Matias Pedro answered

I'm having the same problem as Heartman, using the C++ SDK, after stopping the program with a breakpoint, debugging for like 20 seconds and then hitting continue, I'll get InvitationDestroyed and PartyEndpointDestroyedStateChange: failed to establish or maintain a connection to a network or remote peer.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.