Closed frankosterfeld closed 10 months ago
Attention: 171 lines
in your changes are missing coverage. Please review.
Comparison is base (
99ae7d2
) 55.84% compared to head (a03822f
) 57.15%.
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Failed conditions
35.3% Coverage on New Code (required ≥ 80%)
17.9% Duplication on New Code (required ≤ 3%)
Unify subscription topic handling and fix it for REST (#328, #331)
Do not lose params when subscribing to a topic via REST.
Bump cpp-httplib to newest version, as it fixes an encoding error with query parameters encoded in query parameters (SubscriptionContext) when used with redirects.
To unify subscription handling (different client/servers were making slightly different assumptions), the following is now implemented:
UPDATE: Rebased/merged #330 into this one:
Make sure that long-poll request handlers do not block forever when no corresponding event is received. Otherwise the clients will send one request after another once their request times out client-side, until the worker threads are exhausted and the server stops responding.
It would be great if we could also detect the client connection be dropped using Keep-Alive, but cpp-httplib doesn't seem to have API for that.