Log size of the pipe

This commit is contained in:
badaix 2020-08-08 14:46:25 +02:00
parent 5a5c42c7b3
commit ebae6c128f

View file

@ -55,9 +55,9 @@ PipeStream::PipeStream(PcmListener* pcmListener, boost::asio::io_context& ioc, c
void PipeStream::do_connect()
{
LOG(DEBUG, LOG_TAG) << "connect\n";
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);
on_connect();
}
}
} // namespace streamreader