diff options
author | Emmanuel Vasilakis <mrzammler@mm.st> | 2022-05-20 09:02:25 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-20 09:02:25 +0300 |
commit | 05ef02a817c24ff4c5eae2d813387301b093e220 (patch) | |
tree | 39a348b6aa80048d01b9c984ca1e691a9e791ee7 /web/server | |
parent | 81c15a9bbb59f007b215363c1d24ee2cb66ecea1 (diff) |
Apply some logic to possible streaming destinations (#12866)
* replace connect_to_one_of with connect_to_one_of_destinations
* move functions from socket.c
* use sizeof
* move current destination pointer to host
* formatting
* use snprintfz
* get entries in same order
* handle single destination as before (or when it is the last of the list), instead of skiping it every other loop
* try other destinations on ssl problem
Diffstat (limited to 'web/server')
-rw-r--r-- | web/server/static/static-threaded.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/web/server/static/static-threaded.c b/web/server/static/static-threaded.c index a30ce2ec5a..8b9122f87f 100644 --- a/web/server/static/static-threaded.c +++ b/web/server/static/static-threaded.c @@ -303,6 +303,10 @@ static int web_server_rcv_callback(POLLINFO *pi, short int *events) { worker_is_busy(WORKER_JOB_PROCESS); web_client_process_request(w); + if (unlikely(w->mode == WEB_CLIENT_MODE_STREAM)) { + web_client_send(w); + } + if(unlikely(w->mode == WEB_CLIENT_MODE_FILECOPY)) { if(w->pollinfo_filecopy_slot == 0) { debug(D_WEB_CLIENT, "%llu: FILECOPY DETECTED ON FD %d", w->id, pi->fd); |