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

Stopping server causes server to freeze #72

Closed
allan-m-smith opened this issue Aug 27, 2019 · 2 comments
Closed

Stopping server causes server to freeze #72

allan-m-smith opened this issue Aug 27, 2019 · 2 comments

Comments

@allan-m-smith
Copy link

allan-m-smith commented Aug 27, 2019

Hi,

Using telepathy on a C# console application, when creating the most barebones app possible, the application freezes when I try to stop telepathy server.

The code is just this:

    class Program
    {
        private static void Main(string[] args)
        {
            Console.WriteLine("Starting Gameplay Server!");

            var server = new Server();
            server.Start(5000);

            Console.WriteLine("Starting server on port [5000]...");

            Thread.Sleep(5000);

            server.Stop();

            Console.WriteLine("Gameplay Server no longer running!");
        }
    }

The last line never gets output to the console. This happens when using either the NUGET package or latest revision from this repo. Might be worth noting Im using Visual Studio 2019 for Mac (on a Mac obviously), in case you are unable to reproduce on windows somehow.

You can download this tiny solution here:
https://drive.google.com/open?id=1ktJGU79feAWd8Y8fbAurAMQUFRG9yEOC

Please let me know if there is anything you want me to try out.

Best,
Allan

@miwarnec
Copy link
Collaborator

miwarnec commented Feb 4, 2021

sorry, didn't have time for telepathy in a while.
major rewrite in 2021 happened.
please see if the bug still exists. if yes, please reopen.

@miwarnec miwarnec closed this as completed Feb 4, 2021
@allan-m-smith
Copy link
Author

Hi @vis2k!

Thank you for all the work put into Telepathy! I have just updated to the latest master commit (v1.7) and can confirm this issue persists. To be more precise, the code hangs on the listener?.Stop(); call.

Before updating I was using the fix from this pr: #81

Ill do some digging but unfortunately I'm far from an expert but I'll let you know if I find anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants