Hi Bruce,
Here's what I've gathered since my first post, with the help of Claude, in case it helps narrow things down.
Setup
Clarion 11.1.13855, NetTalk 14.30 (plus StringTheory, JFiles, xFiles)
Multi-site host (PreludeHost14.exe) running 8 NetTalk DLL apps on ports 80 and 443
New server: Windows Server 2025 Standard. The same setup didn't hang on the previous server.
Symptom: the host stops responding after a few days and works again after a restart. The ISP thinks it's port exhaustion ("clients close the connections, but the application is not closing the ports").
Workaround in place
A PowerShell script restarts the host every night. It closes the host normally (WM_CLOSE) and only force-stops it if that doesn't work. Before stopping the host, it logs the state of the sockets on 80/443 and the process handle count.
What the logs show so far
Shortly after a fresh start: 1 TIME_WAIT, 2 LISTEN, 398 handles
After about 15 hours (before the next restart): 19 ESTABLISHED, 2 LISTEN, 0 CLOSE_WAIT, 546 handles
No CLOSE_WAIT sockets have appeared yet, so I haven't been able to confirm what the ISP described.
After 15 hours of running, the host took about 25 seconds to close normally; a few minutes after starting it closed in 1 second. Is that expected while it waits for open connections to close?
I'm now logging the remote IP and age of each open connection with a newer script, so I'll know whether those 19 are current users or stale connections.
Likely problem: the request log
The host writes every GET and POST to a TPS log, wsLog.tps. On this server the file had reached about 1.5 GB and 2,931,694 records. On a copy of the file, TopScan reports possible corruption when reading the most recent records, and rebuilding the keys doesn't fix it. The copy was made while the host was running, so it may not be a perfect snapshot, but either way the file is close to the TPS size limit. I'm replacing it with a fresh file today and will watch whether the hangs stop.
Questions
Could a very large or corrupt TPS log, written on every request, make the host hang or hold connections open? For example, a thread stuck in a write while holding a lock that other requests wait on.
Is wsLog part of NetTalk's host logging, or our own code? If it's NetTalk's, is there a setting to limit or rotate it?
Are there settings in 14.30 for idle or inactive connection timeouts on the host's WebServer that I should check, or is there a later build with relevant fixes for the host, keep-alive or SSL connections?
Anything else you'd like me to log or capture next time it hangs (for example a netstat output, or a process dump from Task Manager)?
Thanks,
Jeff King