a12689851 / slowhttptest

Automatically exported from code.google.com/p/slowhttptest
Apache License 2.0
0 stars 0 forks source link

slowhttptest -c 1000 -u http://[2001:8db:aaaa:1::2] ipv6 server issue #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. slowhttptest -c 1000 -u http://[2001:8db:aaaa:1::2]
2.
3.

What is the expected output? What do you see instead?
Error in getaddrinfo: Servname not supported for ai_socktype
Sun Mar 30 14:24:01 2014:main: error setting up slow HTTP test

What version of the product are you using? On what operating system?
1.6 on ubuntu

Please provide any additional information below.

the tool does not seem to support ipv6 servers :(, i have tried making an 
change to your code (modifying the ai_socktype and ai_family) and then 
recompilling the tool. i still received the same output

Original issue reported on code.google.com by nami...@live.co.uk on 25 Mar 2014 at 7:43

GoogleCodeExporter commented 9 years ago
Basic URL parser I have assumes host part of the URL is either IPv4 address or 
a domain name. I made the changes to support textual IPv6 with zone ids.
Check out section 11 of 
http://tools.ietf.org/html/draft-ietf-ipv6-scoping-arch-02#section-11.  In few 
words, you should also specify the network interface.
e.g. to connect to non-routable address, for example 127.0.0.1, you should use 
something like [::1%lo0] . 

Original comment by shek...@gmail.com on 26 Mar 2014 at 6:54

GoogleCodeExporter commented 9 years ago
Briefly tested on OSX, have no idea how it works on Linux/Cygwyn

Original comment by shek...@gmail.com on 26 Mar 2014 at 6:55