hunchentoot icon indicating copy to clipboard operation
hunchentoot copied to clipboard

Problems with IP6 addresses

Open easye opened this issue 10 years ago • 8 comments

@hanshuebner: I wonder if this ABCL specific problem? Running on osx-10.10.1. If it is ABCL specific, lemme know and I'll triage on my side when I get a chance (I suspect usocket)…

Hunchentoot-1.2.29 from quicklisp 2015-01-03 bound to port 2001 is failing when resolving IP6 for localhost. This is from my EHR application in which I'm using many other libraries in addition to Hunchentoot, but other than RESTAS, they are all for rendering the content, so therefore should not be part of this problem (and RESTAS, although it manipulates some Hunchentoot constructs, is also more of a "rendering" library than anything else).

wget http://localhost:2001
--2015-01-21 16:12:38--  http://localhost:2001/
Resolving localhost (localhost)... ::1, fe80::1, 127.0.0.1
Connecting to localhost (localhost)|::1|:2001... connected.
HTTP request sent, awaiting response...   C-c C-c

gives the

[2015-01-21 16:12:38 [ERROR]] Error while processing connection: The value 8 is not of type (MEMBER 4).

Setting HUNCHENTOOT:*CATCH-ERRORS-P* to nil doesn't signal an error, which is why I'm suspecting USOCKET here

When I use wget with an explicit IP4 address

wget http://127.0.0.1:2001

the request suceeds.

easye avatar Jan 21 '15 15:01 easye

Just noticed https://github.com/edicl/hunchentoot/commit/25605d2464bf4eb034174e27df9ebe602a270e85

Perhaps this code is failing under ABCL?

easye avatar Jan 21 '15 15:01 easye

This is now I a different branch, https://github.com/edicl/hunchentoot/commits/socket-detaching, and not available in quicklisp. This is because ipv6 support in usocket is not in the master branch

stassats avatar Jan 21 '15 15:01 stassats

Now it seems that it has been merged into master in usocket, I guess hunchentoot can now use it as well. Can you try that branch on ABCL and tell me if it's working?

stassats avatar Jan 21 '15 15:01 stassats

Very confusing github interface: WTF does 'v1.2.29' shows up in the html interface when one browses this commit?

Ah. It was part of the v1.2.29 tagged commits, but was "Reverted" later. Mea culpa.

easye avatar Jan 21 '15 15:01 easye

Running USOCKET https://github.com/usocket/usocket/commit/0e4254ab2410527ee4215110e08b51a23157eee1 against HUNCHENTOOT https://github.com/edicl/hunchentoot/commits/socket-detaching fails to compile with:

The symbol "VECTOR-TO-IPV6-HOST" was not found in package USOCKET.

Which version of USOCKET should I be using? Something other than its 'master' branch?

easye avatar Jan 21 '15 15:01 easye

So it was only partially merged, the ipv6 branch of usocket should have it then. If it works for you, maybe open a usocket ticket for merging it into master?

stassats avatar Jan 21 '15 16:01 stassats

And I guess it would need to get ABCL support for IPv6 as well.

stassats avatar Jan 21 '15 16:01 stassats

Alright, I'll dig through the issues for ABCL when I get a chance, probably this weekend. Right now I have to concentrate on getting my own code out the door for my daily bread.

@stassats: Thanks for establishing the needed context for me.

easye avatar Jan 21 '15 17:01 easye