Hi UDN,
In our software we use the FHttpServerModule to build a small server, wich receive configuration and render request, but it does not respond if the Gamethtread is blocked.
Is there a way to make it asynchronously?
Or perhaps there is another class that allows you to easily build a server independent of the GameThread?
Regrads
Unfortunately, there is not a game thread independent server class included with Unreal Engine. You could look at making modifications to the HttpServerModule’s classes to allow it to be run in a separate thread. As a starting point, that would likely involve the following changes:
- Change it so that the Http Listeners run in a dedicated thread
- Across the module there are many things that will need to be changed to be made thread safe. For example, FHttpRouter’s handling of routes doesn’t perform any locking nor use thread safe types.
- Any existing callers may need to be updated with request handlers now running in a separate thread