Forum > Networking and Web Programming
TFPHTTPServer doesn't respond next day.
Soner:
Hello,
I created webapp with TFPHTTPServer. My app-server does not respond after a while.
Sometimes it shows the exception 'No REQUEST_METHOD passed from server.'.
Does anyone know the solution?
I uploaded a test program. I started testprogramm last friday, then it stopped to respond saturday afternoon.
Soner:
Isn't anyone using fphttpserver?
Thaddy:
I do. Did you try the example?
Leledumbo:
--- Quote from: Soner on August 24, 2020, 12:28:53 pm ---Sometimes it shows the exception 'No REQUEST_METHOD passed from server.'.
--- End quote ---
Should be internal exception only, never goes out to the client.
--- Quote from: Soner on August 24, 2020, 12:28:53 pm ---I uploaded a test program. I started testprogramm last friday, then it stopped to respond saturday afternoon.
--- End quote ---
I cannot confirm. I run an even more complex app than this, has both HTML and API endpoints and running 24/7 with MySQL backend. Never goes down. There might be OS influence or something else. When it stops responding, can you confirm that the port it binds to is still open?
Soner:
--- Quote from: Thaddy on August 30, 2020, 05:29:48 pm ---I do. Did you try the example?
--- End quote ---
Which example? Do you mean from "fpc\source\packages\fcl-web\examples\httpserver", my example and app build up on this example.
Maybe I should use libmicrohttp. GNU things are mostly more matured than fpc things. This example ist build on GNU-Libmicrohttp, I will test it this week:
fpc\3.2.0\source\packages\fcl-web\examples\simpleserver
--- Quote from: Leledumbo on August 30, 2020, 09:17:00 pm ---
--- Quote from: Soner on August 24, 2020, 12:28:53 pm ---I uploaded a test program. I started testprogramm last friday, then it stopped to respond saturday afternoon.
--- End quote ---
I cannot confirm. I run an even more complex app than this, has both HTML and API endpoints and running 24/7 with MySQL backend. Never goes down. There might be OS influence or something else. When it stops responding, can you confirm that the port it binds to is still open?
--- End quote ---
I don't think it is OS thing, the computer is only for this server app. When I next day restrat the server-app, it works without error.
What is your server class, TFPHTTPServer, TCustomMicroHTTPApplication, TCustomHTTPApplication?
I must say, it is public server, it has ip4 adress. Sometimes it is scanned by a ip4-scanner.
Navigation
[0] Message Index
[#] Next page