mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-24 22:25:57 +02:00
fix suppression of link saturation messages
This commit is contained in:
parent
23e1ee71cc
commit
7b8ca2c0f2
3 changed files with 5 additions and 3 deletions
|
@ -114,11 +114,11 @@ qint64 Socket::writeDatagram(const QByteArray& datagram, const HifiSockAddr& soc
|
||||||
|
|
||||||
if (bytesWritten < 0) {
|
if (bytesWritten < 0) {
|
||||||
// when saturating a link this isn't an uncommon message - suppress it so it doesn't bomb the debug
|
// when saturating a link this isn't an uncommon message - suppress it so it doesn't bomb the debug
|
||||||
static const QString WRITE_ERROR_REGEX = "writeDatagram error: QAbstractSocket::NetworkError - Unable to send a message";
|
static const QString WRITE_ERROR_REGEX = "Socket::writeDatagram QAbstractSocket::NetworkError - Unable to send a message";
|
||||||
static QString repeatedMessage
|
static QString repeatedMessage
|
||||||
= LogHandler::getInstance().addRepeatedMessageRegex(WRITE_ERROR_REGEX);
|
= LogHandler::getInstance().addRepeatedMessageRegex(WRITE_ERROR_REGEX);
|
||||||
|
|
||||||
qCDebug(networking) << "writeDatagram error:" << _udpSocket.error() << "-" << qPrintable(_udpSocket.errorString());
|
qCDebug(networking) << "Socket::writeDatagram" << _udpSocket.error() << "-" << qPrintable(_udpSocket.errorString());
|
||||||
}
|
}
|
||||||
|
|
||||||
return bytesWritten;
|
return bytesWritten;
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
set(TARGET_NAME udt-test)
|
set(TARGET_NAME udt-test)
|
||||||
setup_hifi_project()
|
setup_hifi_project()
|
||||||
|
|
||||||
link_hifi_libraries(networking)
|
link_hifi_libraries(networking shared)
|
||||||
|
|
||||||
copy_dlls_beside_windows_executable()
|
copy_dlls_beside_windows_executable()
|
|
@ -16,6 +16,8 @@
|
||||||
#include <udt/Constants.h>
|
#include <udt/Constants.h>
|
||||||
#include <udt/Packet.h>
|
#include <udt/Packet.h>
|
||||||
|
|
||||||
|
#include <LogHandler.h>
|
||||||
|
|
||||||
const QCommandLineOption PORT_OPTION { "p", "listening port for socket (defaults to random)", "port", 0 };
|
const QCommandLineOption PORT_OPTION { "p", "listening port for socket (defaults to random)", "port", 0 };
|
||||||
const QCommandLineOption TARGET_OPTION {
|
const QCommandLineOption TARGET_OPTION {
|
||||||
"target", "target for sent packets (default is listen only)",
|
"target", "target for sent packets (default is listen only)",
|
||||||
|
|
Loading…
Reference in a new issue