sudo -H -u www-data ./mycgi.exe
it runs instantly (< 1 sec.)
When run as a cgi-bin program (therefore as www-data user), there is a (measured) 15 second delay and then the program runs in 350ms and the data is returned to the client.
Any idea what might be causing this mysterious 15 second delay? I can't find anything unusual in the .wine folder (which is under /var/www) According to the package manager, I am running wine1.2 version 1.1.31-0ubuntu3.
The output when run via sudo looks like:
Code: Select all
No protocol specified
No protocol specified
No protocol specified
Content-type: text/html
<head></head><body>Incorrect method used to pass data.</body>