Hi,
I built and installed a clean Dillo with your file dpi patch.
I think I will need to reproduce this to examine the logs and inspect the state of the CCC and the DPI while the problem occurs. I will try getting a OpenBSD installation at some point and debug this (and other problems with FreeBSD too). One thing that may be easy to try in the meanwhile is to run the same test by from a local HTTP server, so we don't use the file: DPI. If the bug persists, then it is not related with the file DPI. You can use a lightweight web server like darkhttpd.
Thats interesting, in my previous testing a few days ago I noticed some messages about 'a_Tls_connection' in the debugger, which made no sense since I'm working with a local file:
Yes, a_Tls_connection() is always called and returns NULL when is not a TLS connection. Weird logic... Rodrigo.