Skip to content

Commit

Permalink
Proxy changes
Browse files Browse the repository at this point in the history
  • Loading branch information
varjolintu committed Apr 1, 2018
1 parent e7ffd61 commit 317f543
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/proxy/NativeMessagingHost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,15 @@
#include <QCoreApplication>
#include "NativeMessagingHost.h"

enum { max_length = 1024*1024 };

NativeMessagingHost::NativeMessagingHost() : NativeMessagingBase()
{
m_localSocket = new QLocalSocket();
m_localSocket->connectToServer(getLocalServerPath());
m_localSocket->setReadBufferSize(max_length);
m_localSocket->setReadBufferSize(NATIVE_MSG_MAX_LENGTH);

int socketDesc = m_localSocket->socketDescriptor();
if (socketDesc) {
int max = max_length;
int max = NATIVE_MSG_MAX_LENGTH;
setsockopt(socketDesc, SOL_SOCKET, SO_SNDBUF, &max, sizeof(max));
}
#ifdef Q_OS_WIN
Expand Down

0 comments on commit 317f543

Please sign in to comment.