Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2013-10

No access to Embedded FPC HTTP server on Vista or Win7

3 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Graeme Geldenhuys

Hi,

I'm running a fcl-web based embedded FPC HTTP web server inside a GUI application (HTTP port 9000). I then try and access that web server via http://127.0.0.1:9000/mmaths/login.cgi but under Windows Vista and Windows 7, the web browser simply says "Website found. Waiting for reply..." in the IE status bar. It just sits there looking like it is loading, but nothing ever happens and after about a minute there is not even a timeout error.

This same application works perfectly on Windows 2000 and Windows XP (SP3 installed). All applications and OSes are 32-bit.

When the application startup up for the first time under Windows 7, the Windows Firewall asked if I want to grant access - I have it "internal network only" access. Completely disabling the Windows 7 Firewall made no difference.

Any ideas why this is happening?

Regards,
- Graeme -

Michael Van Canneyt
to Graeme Geldenhuys
Graeme Geldenhuys wrote 12 lines
Hi, I'm running a fcl-web based embedded FPC HTTP web server inside a GUI application (HTTP port 9000). I then try and access that web server via http://127.0.0.1:9000/mmaths/login.cgi   but under Windows Vista and Windows 7, the web browser simply says "Website found. Waiting for reply..." in the IE status bar.  It just sits there looking like it is loading, but nothing ever happens and after about a minute there is not even a timeout error. This same application works perfectly on Windows 2000 and Windows XP (SP3 installed).  All applications and OSes are 32-bit. When the application startup up for the first time under Windows 7, the Windows Firewall asked if I want to grant access - I have it "internal network only" access. Completely disabling the Windows 7 Firewall made no difference. Any ideas why this is happening?

Damn windows Firewall :(

Does the request arrive at all in the webserver app ? i.e. does the Accept() call return ?

Michael.

Graeme Geldenhuys
Graeme Geldenhuys wrote
Any ideas why this is happening?

Just a quick progress update...

It seems it wasn't the fcl-web HTTP Server or CGI clients at fault, but rather an Embedded Firebird shared access problem on Windows Vista and later. The webserver app established a DB connection, and then later the CGI apps try and establish a DB connection too, but due to file locking the CGI apps are prevented from getting that connection. The web browser then just sits there "loading...."

As Michael pointed out to me, as of Embedded Firebird 2.5, shared access should be allowed. I am using 2.5.2 and it seems on my test systems, shared access is still not allowed. I'll google shared access some more, and if I don't find anything, simply modify the webserver application to only establish a DB connection when absolutely necessary, and only for a short duration.

Regards,
Graeme