Ipv6 connection delay of 2s

When we do a fresh install of Lucee 6 or encounter slow request times, we do this as well. We change the server.xml from this:

 <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector protocol="AJP/1.3"
	    port="8009"
	    secret="[somesecret]"
	    secretRequired="true"
	    redirectPort="8443"
	    />

to this:

 <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector protocol="AJP/1.3"
	    port="8009"
	    secret="[somesecret]"
	    secretRequired="true"
	    redirectPort="8443"
	    address="::1"
	    tomcatAuthentication="false"
	    />

For us this makes our requests much faster. Before the change there will be a delay of 2 seconds and then a super fast request response of 20 to 40 milliseconds. After this change it’s just the 20 to 40 ms request time.

I was wondering why this is actually and why it isn’t included as a fix to Tomcat during installation of Lucee 6.x?

@sebgmc I’ve moved this to a new thread

that one is a long story, if someone wants to jump in and figure it out, that would be great

1 Like

What address does your Apache / BonCode configuration use? my guess is that it is “localhost”. I think this can happen when two pieces of software “Apache/BonCode” and Tomcat don’t agree on if “localhost” means IPv6 or IPv4.

If you explicitly specify 127.0.0.1 in both configs I’d bet you’d also see the problem go away.

Pete Freitag
Foundeo Inc.

1 Like

That is the solution, but no one has been able to explain it to me as you say now. Which may be the solution, but also the preferred suggestion for all using the normal Lucee 6 installer, wouldn’t it? To change the settings as suggested. But as both parts are in hand of the Lucee installer, I’d think it would be wise to make these changes to both the Tomcat install and mod_cfml, so we do not have this collision?