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

recvfrom SYSCALL infinite loop #51

Open
kldeng opened this issue Mar 15, 2016 · 0 comments
Open

recvfrom SYSCALL infinite loop #51

kldeng opened this issue Mar 15, 2016 · 0 comments

Comments

@kldeng
Copy link

kldeng commented Mar 15, 2016

Hi,
When using jsonrpclib to build a RPC Server.
server = SimpleJSONRPCServer(('0.0.0.0', rpc_listening_port))
server.register_function(floatingip_check, 'floatingip_check')
server.serve_forever()

It's found that the RPC Server process is stucked in a recv_from infinite loop.
recvfrom(4, "", 1, 0, NULL, NULL) = 0
recvfrom(4, "", 1, 0, NULL, NULL) = 0
(output from strace)

It seems rpc server doesn't close the socket normally while recvfrom return zero which indicating the peer has performed an shutdown.

Is this a bug of jsonrpclib or I missed something to make it work.
Thanks a lot.

@kldeng kldeng changed the title recv_from SYSCALL infinite loop recvfrom SYSCALL infinite loop Mar 15, 2016
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

1 participant