Make backlog_size changeable across HUPs.
[cubemap] / main.cpp
index 8ac7802..0727314 100644 (file)
--- a/main.cpp
+++ b/main.cpp
@@ -146,6 +146,8 @@ void create_streams(const Config &config,
                const StreamConfig &stream_config = config.streams[i];
                if (deserialized_stream_ids.count(stream_config.stream_id) == 0) {
                        servers->add_stream(stream_config.stream_id, stream_config.backlog_size);
+               } else {
+                       servers->set_backlog_size(stream_config.stream_id, stream_config.backlog_size);
                }
                expecting_stream_ids.erase(stream_config.stream_id);