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

ERROR when use ipv6 #407

Closed
gongwei-130 opened this issue Sep 16, 2020 · 1 comment
Closed

ERROR when use ipv6 #407

gongwei-130 opened this issue Sep 16, 2020 · 1 comment
Assignees
Labels
Done The issue discussion is exhausted and is closed w/ comment

Comments

@gongwei-130
Copy link

Describe the issue briefly here, including:

  • expected result versus actual result
  • involved/problematic methods, e.g. __call__
  • steps to reproduce
  • for bugs, please attach a
    h, p = sock.getpeername()
    ValueError: too many values to unpack (expected 2)

h, p = sock.getpeername()

stack trace / error log
Environment
  • rpyc version 4.1.5
  • python version 3.7
  • operating system linux
Minimal example

Server:

import rpyc
from rpyc.utils.server import OneShotServer


class HelloService(rpyc.Service):
    def exposed_concat(self, remote_str):
        local_str = ' github'
        return remote_str + local_str


if __name__ == "__main__":
    rpyc.lib.setup_logger()
    server = OneShotServer(HelloService, port=12345)
    server.start()

Client:

from __future__ import print_function
import rpyc


if __name__ == "__main__":
    c = rpyc.connect("localhost", 12345)
    print(c.root.concat('hello'))
@comrumino comrumino self-assigned this Oct 8, 2020
@comrumino comrumino added the To Start Description reviewed and a maintainer needs "to start" triage label Oct 8, 2020
@comrumino comrumino added Done The issue discussion is exhausted and is closed w/ comment and removed To Start Description reviewed and a maintainer needs "to start" triage labels Nov 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Done The issue discussion is exhausted and is closed w/ comment
Projects
None yet
Development

No branches or pull requests

2 participants