{"action":"closed","issue":{"url":"https://api.github.com/repos/riptideio/pymodbus/issues/84","repository_url":"https://api.github.com/repos/riptideio/pymodbus","labels_url":"https://api.github.com/repos/riptideio/pymodbus/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/riptideio/pymodbus/issues/84/comments","events_url":"https://api.github.com/repos/riptideio/pymodbus/issues/84/events","html_url":"https://github.com/riptideio/pymodbus/issues/84","id":77638404,"number":84,"title":"Stop async Server","user":{"login":"Loris1123","id":3740470,"avatar_url":"https://avatars0.githubusercontent.com/u/3740470?v=4","gravatar_id":"","url":"https://api.github.com/users/Loris1123","html_url":"https://github.com/Loris1123","followers_url":"https://api.github.com/users/Loris1123/followers","following_url":"https://api.github.com/users/Loris1123/following{/other_user}","gists_url":"https://api.github.com/users/Loris1123/gists{/gist_id}","starred_url":"https://api.github.com/users/Loris1123/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Loris1123/subscriptions","organizations_url":"https://api.github.com/users/Loris1123/orgs","repos_url":"https://api.github.com/users/Loris1123/repos","events_url":"https://api.github.com/users/Loris1123/events{/privacy}","received_events_url":"https://api.github.com/users/Loris1123/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2015-05-18T12:31:58Z","updated_at":"2017-11-24T09:05:37Z","closed_at":"2017-11-24T09:05:37Z","author_association":"NONE","body":"I didn't find a way to stop an async TCP Server. I need this to test the server with different configuration in a single script.\n\nTo stop the async server I added the following code to async.py:\n\n```\ndef StopTcpServer(is_mainthread=True):\n    from twisted.internet import reactor\n    if is_mainthread:\n        reactor.stop()\n    else:\n        reactor.callFromThread(reactor.stop)\n```\n\nIt seems like it is working for me. Maybe you should include something similar to pymodbus.\n"}}
{"actor":{"display_login":"dhoomakethu"}}