mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-17 19:16:14 +02:00
Log size of the pipe
This commit is contained in:
parent
5a5c42c7b3
commit
ebae6c128f
1 changed files with 2 additions and 2 deletions
|
@ -55,9 +55,9 @@ PipeStream::PipeStream(PcmListener* pcmListener, boost::asio::io_context& ioc, c
|
||||||
|
|
||||||
void PipeStream::do_connect()
|
void PipeStream::do_connect()
|
||||||
{
|
{
|
||||||
LOG(DEBUG, LOG_TAG) << "connect\n";
|
|
||||||
int fd = open(uri_.path.c_str(), O_RDONLY | O_NONBLOCK);
|
int fd = open(uri_.path.c_str(), O_RDONLY | O_NONBLOCK);
|
||||||
|
LOG(INFO, LOG_TAG) << "Connect fd: " << fd << ", pipe size: " << fcntl(fd, F_GETPIPE_SZ) << "\n";
|
||||||
stream_ = std::make_unique<boost::asio::posix::stream_descriptor>(ioc_, fd);
|
stream_ = std::make_unique<boost::asio::posix::stream_descriptor>(ioc_, fd);
|
||||||
on_connect();
|
on_connect();
|
||||||
}
|
}
|
||||||
}
|
} // namespace streamreader
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue