summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKurt Pattyn <pattyn.kurt@gmail.com>2014-04-09 09:09:51 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-05 10:32:35 +0200
commit3a42807b0a3148b2fe13d96b6e495dd374a31c17 (patch)
tree9d327f2249931ea8d1789237a6e4143a208ebca9
parentf78a7049271e59238acfcad58fb4f7183d92cd1f (diff)
downloadqtwebsockets-3a42807b0a3148b2fe13d96b6e495dd374a31c17.tar.gz
Remove superfluous qWarning statements
Change-Id: I3a6f9881cbd19f409f6d345fde640b9899dad196 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
-rw-r--r--src/websockets/qwebsocketserver_p.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/websockets/qwebsocketserver_p.cpp b/src/websockets/qwebsocketserver_p.cpp
index 70bc5da..17cb565 100644
--- a/src/websockets/qwebsocketserver_p.cpp
+++ b/src/websockets/qwebsocketserver_p.cpp
@@ -407,12 +407,10 @@ void QWebSocketServerPrivate::onCloseConnection()
void QWebSocketServerPrivate::handshakeReceived()
{
if (Q_UNLIKELY(!currentSender)) {
- qWarning() << QWebSocketServer::tr("Sender is NULL. This is a Qt bug.");
return;
}
QTcpSocket *pTcpSocket = qobject_cast<QTcpSocket*>(currentSender->sender);
if (Q_UNLIKELY(!pTcpSocket)) {
- qWarning() << QWebSocketServer::tr("Sender is not a QTcpSocket. This is a Qt bug!!!");
return;
}
//When using Google Chrome the handshake in received in two parts.
@@ -434,8 +432,6 @@ void QWebSocketServerPrivate::handshakeReceived()
if (m_pendingConnections.length() >= maxPendingConnections()) {
pTcpSocket->close();
pTcpSocket->deleteLater();
- qWarning() << QWebSocketServer::tr("Too many pending connections: " \
- "New WebSocket connection not accepted.");
setError(QWebSocketProtocol::CloseCodeAbnormalDisconnection,
QWebSocketServer::tr("Too many pending connections."));
return;
@@ -483,7 +479,6 @@ void QWebSocketServerPrivate::handshakeReceived()
}
}
if (!success) {
- qWarning() << QWebSocketServer::tr("Closing socket because of invalid or unsupported request.");
pTcpSocket->close();
}
}