The Problem (simplified):
Hit a site page (simple home page, doesn’t matter, .cfm) wait 60 seconds and then do a refresh, result is a 502 error. 2nd refresh loads the page fine.
Some of the settings i tried (tweaking some of the timeouts) would change the results the refresh @ 60 seconds resulting in a ‘timeout’ from iis/.net. If I waited long enought -before- the first refresh in that config state, (like 120+ seconds) I would also get a 502.
I’ve been fighting this for several days now. I’ve tried just about every combination of timeouts/pools/TCP settings in server.xml, boncodeAJP13.settings, IIS that I’ve been able to fin references to to solve this problem.
I have a active AJP Connections Diagnostics window open showing me the connections. I can see the connection go from ‘Established’ to “Close_Wait” and “Fin_Wait_2”. But those will stay in the list for another 60+ seconds before dropping. If i refresh while those are still listed, is when i get the ‘hang’ of the iis/.net timeout. If i wait til they drop then I instantly get a 502.
I understand that this sounds like a timing issue. But nothing I’ve tried (or that’s been suggested to me) has worked.
I’ve tried all the different combinations of ip addresses (::1,127.0.0.1,0.0.0.0) none of which fixed the issue.
I’ve attempted with and without the secrets, updated the TCP, changed iis settings, the list of attempted changes is huge.
I don’t understand why it’s so hard to get a fresh windows 22 installation with a fresh Lucee 7 install to work without these errors.
The Attached txt is one of the combinations I’ve used.
127.0.0.1 8009 25 True True False False <RequestSecret{secret} {modsecret} 2000 16384 16384 True False False 30000 30 True 3 C:\BonCodeLogsBonCode Log (tail end of the initial ‘good request’) followed by the error after attempting a refresh of the same page.
2026-03-18 13:14:26 BonCodeAJP13.TomcatPackets.TomcatSendBodyChunk 16380 bytes
2026-03-18 13:14:26 BonCodeAJP13.TomcatPackets.TomcatSendBodyChunk 2553 bytes
2026-03-18 13:14:26 BonCodeAJP13.TomcatPackets.TomcatSendBodyChunk 4 bytes
2026-03-18 13:14:26 BonCodeAJP13.TomcatPackets.TomcatSendBodyChunk 4 bytes
2026-03-18 13:14:26 BonCodeAJP13.TomcatPackets.TomcatSendBodyChunk 12663 bytes
2026-03-18 13:14:26 BonCodeAJP13.TomcatPackets.TomcatSendBodyChunk 4 bytes
2026-03-18 13:14:26 BonCodeAJP13.TomcatPackets.TomcatSendBodyChunk 4 bytes
2026-03-18 13:14:26 BonCodeAJP13.TomcatPackets.TomcatEndResponse 2 bytes
2026-03-18 13:21:41 Closing Connection ID: 1 [T-2]
2026-03-18 13:21:41 Closing Connection ID: 5 [T-2]
2026-03-18 13:21:41 Closing Connection ID: 3 [T-2]
2026-03-18 13:21:41 Closing Connection ID: 2 [T-2]
2026-03-18 13:21:41 Closing Connection ID: 4 [T-2]
2026-03-18 13:29:07 New Connection 1 of 2000 to tomcat: 127.0.0.1:8009 ID: 1 [T-201]
2026-03-18 13:29:07 1.0.44 ERROR
TCP Client level – Server/Port:127.0.0.1/8009
Unable to write data to the transport connection: An established connection was aborted by the software in your host machine.
at System.Net.Sockets.NetworkStream.Write(Byte buffer, Int32 offset, Int32 size)
at BonCodeAJP13.BonCodeAJP13ServerConnection.ComunicateWithTomcat()
at BonCodeAJP13.BonCodeAJP13ServerConnection.HandleConnection()
at BonCodeAJP13.BonCodeAJP13ServerConnection.p_CreateConnection(BonCodeAJP13PacketCollection packetsToSend)
2026-03-18 13:31:06 New Connection 2 of 2000 to tomcat: 127.0.0.1:8009 ID: 2 [T-230]
2026-03-18 13:31:06 BonCodeAJP13.ServerPackets.BonCodeAJP13ForwardRequest GET /Products_Drill-Down.cfm 3891 bytes
ANY guidance would be wonderful from anyone. I’ve pretty much exhausted everything I can think of and everything ive found online to solve this issue.
Don’t forget to tell us about your stack!
OS: Windows 2022
Java Version: 21
Tomcat Version: 11
Lucee Version: 7
-Dennis
Config Files.txt (1.3 KB)


