Skip to content
This repository has been archived by the owner on Sep 30, 2020. It is now read-only.

asrv: Rename files #87

Merged
merged 1 commit into from
Mar 20, 2017
Merged

asrv: Rename files #87

merged 1 commit into from
Mar 20, 2017

Conversation

mwkmwkmwk
Copy link
Contributor

No description provided.

python/srv Outdated
else:
print('Starting TCP server.')
loop.run_until_complete(veles.asrv.proto.tcp_server(srv, host, int(port)))
loop.run_until_complete(tcp_server(conn, host, int(port)))
print('Ready.')
# loop.add_signal_handler(signal.SIGINT, loop.stop)
Copy link
Contributor

Choose a reason for hiding this comment

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

Not related to this PR, but why is this commented out? Please write a comment with reason or delete.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see any near future where this can be restored - the problem is that add_signal_handler isn't available on Windows so we can't use it :(
So lets remove it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

try: ... except AttributeError: pass?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@asyncio.coroutine
def unix_server(srv, path):
return (yield from srv.loop.create_unix_server(lambda: Proto(srv), path))
async def unix_server(conn, path):
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: rename to create_unix_server

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@asyncio.coroutine
def tcp_server(srv, ip, port):
return (yield from srv.loop.create_server(lambda: Proto(srv), ip, port))
async def tcp_server(conn, ip, port):
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: rename to create_tcp_server

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@mwkmwkmwk mwkmwkmwk changed the base branch from wip/mwk/use-pos-filter to wip/mwk/root-id March 20, 2017 13:08
@mwkmwkmwk mwkmwkmwk changed the base branch from wip/mwk/root-id to master March 20, 2017 14:06
@mwkmwkmwk mwkmwkmwk merged commit 9491461 into master Mar 20, 2017
@mwkmwkmwk mwkmwkmwk deleted the wip/mwk/asrv-rename branch March 20, 2017 14:07
altran01 added a commit that referenced this pull request Mar 29, 2017
This is fix for regression introduced in PR #87 where wrong exception
type was assumed to be thrown by add_signal_handler on Windows
altran01 added a commit that referenced this pull request Mar 29, 2017
This is fix for regression introduced in PR #87 where wrong exception
type was assumed to be thrown by add_signal_handler on Windows
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.

3 participants