Initial agent-side code for agent to server connections
[public/netxms.git] / src / agent / core / session.cpp
index d483537..5f5df2b 100644 (file)
@@ -36,11 +36,6 @@ UINT32 UninstallPolicy(CommSession *session, NXCPMessage *request);
 UINT32 GetPolicyInventory(CommSession *session, NXCPMessage *msg);
 void ClearDataCollectionConfiguration();
 
-/**
- * Max message size
- */
-#define MAX_MSG_SIZE    4194304
-
 /**
  * SNMP proxy thread pool
  */
@@ -206,7 +201,7 @@ void CommSession::disconnect()
  */
 void CommSession::readThread()
 {
-   SocketMessageReceiver receiver(m_hSocket, 4096, MAX_MSG_SIZE);
+   SocketMessageReceiver receiver(m_hSocket, 4096, MAX_AGENT_MSG_SIZE);
    while(true)
    {
       if (!m_proxyConnection)