B4J Question More jetty questions

mrred128

Active Member
Licensed User
Longtime User
1) When the service has been started, is there any way of controlling the total amount of threads it spawns? If I made a global variable and made it count, would this be enough?

2) When I setup my server I use "srvr.AddHandler("/*", "WebServer", false)" to force all traffic not to go to the file system, but to my "WebServer" handler. Is there any other access I would need to prevent going to the file system?
 

Erel

B4X founder
Staff member
Licensed User
Longtime User
1) The server will maintain an internal thread pool. You don't need to worry about its size.

2) The only folder that will be ever accessed automatically is the folder set with Server.StaticFilesFolder. The server will not allow access to any other folders (the server takes the path, transforms it to the absolute path and checks whether it is under the set folder).
 
Upvote 0

AscySoft

Active Member
Licensed User
Longtime User
Sorry to bring this up, I just want to know if
1) Is it possible to display a html page with server activity: like: time passed, user or current connection. local time etc?
2) How to implement a custom error page if an error occure on jetty (any error).
Thanks
 
Upvote 0
Top