mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-19 20:16:15 +02:00
leave no_delay option default
This commit is contained in:
parent
60ed5b46d4
commit
756dd428f0
6 changed files with 7 additions and 10 deletions
|
@ -354,10 +354,7 @@ void StreamServer::handleAccept(socket_ptr socket)
|
|||
setsockopt(socket->native_handle(), SOL_SOCKET, SO_SNDTIMEO, &tv, sizeof(tv));
|
||||
|
||||
/// experimental: turn on tcp::no_delay
|
||||
// asio::ip::tcp::no_delay option;
|
||||
// socket->get_option(option);
|
||||
// logE << "no_delay: " << option.value() << "\n";
|
||||
socket->set_option(tcp::no_delay(true));
|
||||
// socket->set_option(tcp::no_delay(true));
|
||||
|
||||
logS(kLogNotice) << "StreamServer::NewConnection: " << socket->remote_endpoint().address().to_string() << endl;
|
||||
shared_ptr<StreamSession> session = make_shared<StreamSession>(this, socket);
|
||||
|
|
|
@ -71,7 +71,7 @@ void AirplayStream::onStderrMsg(const char* buffer, size_t n)
|
|||
string logmsg = trim_copy(string(buffer, n));
|
||||
if (logmsg.empty())
|
||||
return;
|
||||
logO << "(" << exe_ << ") " << logmsg << "\n";
|
||||
logO << "(" << getName() << ") " << logmsg << "\n";
|
||||
if (logmsg.find("Is another Shairport Sync running on this device") != string::npos)
|
||||
{
|
||||
logE << "Seem there is another Shairport Sync runnig on port " << port_ << ", switching to port " << port_ + 1 << "\n";
|
||||
|
|
|
@ -21,13 +21,13 @@
|
|||
|
||||
#include "processStream.h"
|
||||
|
||||
/// Starts shairport-sync and reads and PCM data from stdout
|
||||
/// Starts shairport-sync and reads PCM data from stdout
|
||||
/**
|
||||
* Starts librespot, reads PCM data from stdout, and passes the data to an encoder.
|
||||
* Implements EncoderListener to get the encoded data.
|
||||
* Data is passed to the PcmListener
|
||||
* usage:
|
||||
* snapserver -s "airplay:///shairport-sync?name=Airplay[&devicename=Snapcast]"
|
||||
* snapserver -s "airplay:///shairport-sync?name=Airplay[&devicename=Snapcast][&port=5000]"
|
||||
*/
|
||||
class AirplayStream : public ProcessStream
|
||||
{
|
||||
|
|
|
@ -126,7 +126,7 @@ void ProcessStream::onStderrMsg(const char* buffer, size_t n)
|
|||
{
|
||||
string line = trim_copy(string(buffer, n));
|
||||
if ((line.find('\0') == string::npos) && !line.empty())
|
||||
logO << "(" << exe_ << ") " << line << "\n";
|
||||
logO << "(" << getName() << ") " << line << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -100,7 +100,7 @@ void SpotifyStream::onStderrMsg(const char* buffer, size_t n)
|
|||
(logmsg.find('\0') == string::npos) &&
|
||||
(logmsg.size() > 4))
|
||||
{
|
||||
logO << "(" << exe_ << ") " << logmsg << "\n";
|
||||
logO << "(" << getName() << ") " << logmsg << "\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#include "processStream.h"
|
||||
#include "watchdog.h"
|
||||
|
||||
/// Starts librespot and reads and PCM data from stdout
|
||||
/// Starts librespot and reads PCM data from stdout
|
||||
/**
|
||||
* Starts librespot, reads PCM data from stdout, and passes the data to an encoder.
|
||||
* Implements EncoderListener to get the encoded data.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue