diff options
Diffstat (limited to 'apps/Gateway/Gateway/Connection_Handler.cpp')
-rw-r--r-- | apps/Gateway/Gateway/Connection_Handler.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/Gateway/Gateway/Connection_Handler.cpp b/apps/Gateway/Gateway/Connection_Handler.cpp index 1e603dc73b7..95212a7b2c7 100644 --- a/apps/Gateway/Gateway/Connection_Handler.cpp +++ b/apps/Gateway/Gateway/Connection_Handler.cpp @@ -2,7 +2,6 @@ #define ACE_BUILD_SVC_DLL -#include "ace/OS_NS_string.h" #include "Event_Channel.h" #include "Concrete_Connection_Handlers.h" @@ -51,7 +50,8 @@ Connection_Handler::Connection_Handler (void) } Connection_Handler::Connection_Handler (const Connection_Config_Info &pci) - : local_addr_ (pci.local_port_), + : remote_addr_ (pci.remote_port_, pci.host_[0] == '\0' ? ACE_DEFAULT_SERVER_HOST : pci.host_), + local_addr_ (pci.local_port_), connection_id_ (pci.connection_id_), total_bytes_ (0), state_ (Connection_Handler::IDLE), @@ -59,10 +59,6 @@ Connection_Handler::Connection_Handler (const Connection_Config_Info &pci) max_timeout_ (pci.max_retry_timeout_), event_channel_ (pci.event_channel_) { - if (ACE_OS::strlen (pci.host_) > 0) - this->remote_addr_.set (pci.remote_port_, pci.host_); - else - this->remote_addr_.set (pci.remote_port_, ACE_DEFAULT_SERVER_HOST); // Set the priority of the Proxy. this->priority (int (pci.priority_)); } |