I wrote a WEC7 console application hosting a POCO HTTPServer instance which serves some HTTP requests.
As the initial application has run very slow, I set the priority of the main thread to 97, which lead to fast responses upon the first HTTP request.
However, subsequent HTTP requests are still served pretty slow (upon five seconds delay between serving pretty trivial requests). I guess that's because of the thread priority of the worker threads the HTTP server is instancing (i set the maxThread-value to 2).
Thus, I've called setThreadPriority of HTTPServerParams with PRIO_HIGHEST. However, that didn't improve the performance. When I'm calling CeGetThreadPriority on the current thread within my Request Handlers, the priority is always set to 249, which is a rather low priority.
HTTPServerParams does not have an option like setOSThreadPriority to take finer control about what's configured within the threads.
Long story short: how can I further increase the thread priority of the HTTP Server worker threads?
Thank you in advance.