Merge branch 'develop' into pr/1113

This commit is contained in:
Alex Fabijanic 2016-03-10 08:57:21 -08:00
commit 31d23d2d2a
5 changed files with 10 additions and 10 deletions

View File

@ -44,8 +44,6 @@ private:
#if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__) || defined(_AIX)
sem_t* _sem;
#else
int _lockfd; // lock file descriptor
int _semfd; // file used to identify semaphore
int _semid; // semaphore id
#endif
};

View File

@ -47,8 +47,6 @@ private:
#if defined(sun) || defined(__APPLE__) || defined(__osf__) || defined(__QNX__) || defined(_AIX)
sem_t* _sem;
#else
int _lockfd; // lock file descriptor
int _semfd; // file used to identify semaphore
int _semid; // semaphore id
#endif
};

View File

@ -58,7 +58,6 @@ protected:
void buildRequest(BinaryWriter& writer);
private:
Int32 _flags;
std::string _fullCollectionName;
Int32 _numberToReturn;
Int64 _cursorID;

View File

@ -376,8 +376,15 @@ long SecureSocketImpl::verifyPeerCertificateImpl(const std::string& hostName)
bool SecureSocketImpl::isLocalHost(const std::string& hostName)
{
SocketAddress addr(hostName, 0);
return addr.host().isLoopback();
try
{
SocketAddress addr(hostName, 0);
return addr.host().isLoopback();
}
catch (Poco::Exception&)
{
return false;
}
}

View File

@ -67,10 +67,8 @@ private:
AsyncReader(const AsyncReader&);
AsyncReader& operator = (const AsyncReader&);
Activity<AsyncReader> _activity;
Client& _client;
Activity<AsyncReader> _activity;
};