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

Add a timeout for socket connection #2791

Merged
merged 5 commits into from
Feb 28, 2017

Conversation

benjaminpetit
Copy link
Member

Fix for #2788

It seems that the value by default is around 20 seconds.

I added a method in SocketManager to be able to specify a timeout from the configuration, and use it for client->gw and silo->silo socket connect.

@xiazen
Copy link
Contributor

xiazen commented Feb 28, 2017

aww. 'Socket' does not contain a definition for 'BeginConnect' and no extension method 'BeginConnect' accepting a first argument of type 'Socket' could be found (are you missing a using directive or an assembly reference?) [D:\j\workspace\netstandard-w---f16d272e\vNext\src\Orleans\Orleans.csproj]

without much investigation , I think in netstandard, Socket may not have an method of BeginConnect. You need to find an alternative for that

@benjaminpetit
Copy link
Member Author

Great... I Have to use the over complicated ConnectAsync for that...

@benjaminpetit
Copy link
Member Author

@dotnet-bot Test this please

@gabikliot
Copy link
Contributor

LGTM.

@sergeybykov sergeybykov added this to the 1.5.0 milestone Feb 28, 2017
@sergeybykov sergeybykov merged commit ae78766 into dotnet:master Feb 28, 2017
sergeybykov pushed a commit to sergeybykov/orleans that referenced this pull request Mar 17, 2017
jdom pushed a commit that referenced this pull request Mar 17, 2017
@benjaminpetit benjaminpetit deleted the connect-timeout branch March 15, 2018 16:54
@github-actions github-actions bot locked and limited conversation to collaborators Dec 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants