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

IPv6: getsockaddrarg() takes exactly 2 arguments (4 given) #98

Open
ihmels opened this issue Nov 21, 2019 · 1 comment
Open

IPv6: getsockaddrarg() takes exactly 2 arguments (4 given) #98

ihmels opened this issue Nov 21, 2019 · 1 comment

Comments

@ihmels
Copy link

ihmels commented Nov 21, 2019

When a hostname is resolved to an IPv6 address, Px does not work and I receive the status code 408. I've set noproxy = 0.0.0.0/0, ::/0 and I get the following error, when I run

curl -I http://packagist.org
MainProcess: MainThread: 1574371061: verify_request: Client address: 127.0.0.1
MainProcess: MainThread: 1574371061: verify_request: Host-only IP allowed
MainProcess: Thread_3: 1574371061: do_HEAD: Entering
MainProcess: Thread_3: 1574371061: do_GET: Entering
MainProcess: Thread_3: 1574371061: do_GET: Path = http://packagist.org/
MainProcess: Thread_3: 1574371061: do_transaction: Entering
MainProcess: Thread_3: 1574371061: get_destination: packagist.org:80
MainProcess: Thread_3: 1574371061: get_destination: http://packagist.org/ => ('2001:41d0:801:1000::27d', 80, 0, 0) + /
MainProcess: Thread_3: 1574371061: get_destination: Direct connection from noproxy configuration
MainProcess: Thread_3: 1574371061: do_transaction: Skipping NTLM proxying
MainProcess: Thread_3: 1574371061: do_socket: Entering
MainProcess: Thread_3: 1574371061: do_socket_connect: New connection: ('2001:41d0:801:1000::27d', 80, 0, 0)
MainProcess: Thread_3: 1574371061: do_socket_connect: Connect failed: getsockaddrarg() takes exactly 2 arguments (4 given)
MainProcess: Thread_3: 1574371061: do_GET: Error 408
MainProcess: Thread_3: 1574371061: log_message: code 408, message Request Timeout
MainProcess: Thread_3: 1574371061: log_message: "HEAD http://packagist.org/ HTTP/1.1" 408 -
MainProcess: Thread_3: 1574371061: do_GET: Done
MainProcess: Thread_3: 1574371061: do_HEAD: Done
@genotrance
Copy link
Owner

Looks like some work was done around enabling IPv6 in a fork: ltauvel@e44302b

Hoping @ltauvel can comment and maybe provide some patches to get this working in Px.

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

No branches or pull requests

2 participants