diff --git a/components/stream_server/stream_server.cpp b/components/stream_server/stream_server.cpp index b9329fa..8652e89 100644 --- a/components/stream_server/stream_server.cpp +++ b/components/stream_server/stream_server.cpp @@ -34,6 +34,7 @@ void StreamServerComponent::setup() { socklen_t bind_addrlen = socket::set_sockaddr_any(reinterpret_cast(&bind_addr), sizeof(bind_addr), htons(this->port_)); this->socket_ = socket::socket_ip(SOCK_STREAM, PF_INET); + this->socket_->setblocking(false); this->socket_->bind(reinterpret_cast(&bind_addr), bind_addrlen); this->socket_->listen(8); }