B4J Question Jetty server connections limit

fabton1963

Member
Licensed User
Longtime User
Good morning. I'd like to know:

  • What is the default connection limit in the Jetty server used by B4J's server class?
  • Can I query this parameter?
  • Can I set this parameter as I would in Apache?
Using my project when many clients send a GET request to download simple files (small jpg or binary files) sometimes some clients disconnect with connection refused message.


my server declaration:
        srvr.Initialize("srvr")
        srvr.Http2Enabled = False
        srvr.Port = settings.Get("ListenerPort")
        
    

        srvr.AddFilter("/*", "SessionCreator", False)
        srvr.StaticFilesFolder = File.Combine("C:\myfolder\", "www")
        srvr.LogsFileFolder = File.Combine("C:\mylogs\", "logs")
        
        
        
        srvr.AddWebSocket("/ws/LoginPage","LoginPage")
        srvr.AddWebSocket("/ws/Dashboard","Dashboard")
...
...
        srvr.AddHandler("/aaa", "aaa" ,False)
        
        srvr.AddHandler("/bbb", "bbb", False)
        srvr.AddHandler("/ccc/*", "cc", False)

        srvr.AddHandler("/ddd", "ddd", False)
        
        srvr.Start
 
Cookies are required to use this site. You must accept them to continue using the site. Learn more…