Skip to content

Commit

Permalink
Merge remote-tracking branch 'pocoproject/develop' into MySQLOnTravis…
Browse files Browse the repository at this point in the history
…AndAppVeyor
  • Loading branch information
zosrothko committed Mar 10, 2016
2 parents 1f6ccce + b2ac870 commit 41bbe9a
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 14 deletions.
2 changes: 0 additions & 2 deletions Foundation/include/Poco/NamedEvent_UNIX.h
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class Foundation_API NamedEventImpl
#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
};
Expand Down
2 changes: 0 additions & 2 deletions Foundation/include/Poco/NamedMutex_UNIX.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,6 @@ class Foundation_API NamedMutexImpl
#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
};
Expand Down
6 changes: 3 additions & 3 deletions Foundation/include/Poco/TaskManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class Foundation_API TaskManager
TaskList taskList() const;
/// Returns a copy of the internal task list.

int count() const;
std::size_t count() const;
/// Returns the number of tasks in the internal task list.

void addObserver(const AbstractObserver& observer);
Expand Down Expand Up @@ -125,11 +125,11 @@ class Foundation_API TaskManager
//
// inlines
//
inline int TaskManager::count() const
inline std::size_t TaskManager::count() const
{
FastMutex::ScopedLock lock(_mutex);

return (int) _taskList.size();
return _taskList.size();
}


Expand Down
3 changes: 2 additions & 1 deletion Foundation/src/TaskManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,11 +115,12 @@ void TaskManager::taskStarted(Task* pTask)

void TaskManager::taskProgress(Task* pTask, float progress)
{
FastMutex::ScopedLock lock(_mutex);
ScopedLockWithUnlock<FastMutex> lock(_mutex);

if (_lastProgressNotification.isElapsed(MIN_PROGRESS_NOTIFICATION_INTERVAL))
{
_lastProgressNotification.update();
lock.unlock();
_nc.postNotification(new TaskProgressNotification(pTask, progress));
}
}
Expand Down
1 change: 0 additions & 1 deletion MongoDB/include/Poco/MongoDB/GetMoreRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ class MongoDB_API GetMoreRequest : public RequestMessage
void buildRequest(BinaryWriter& writer);

private:
Int32 _flags;
std::string _fullCollectionName;
Int32 _numberToReturn;
Int64 _cursorID;
Expand Down
11 changes: 9 additions & 2 deletions NetSSL_OpenSSL/src/SecureSocketImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}


Expand Down
4 changes: 1 addition & 3 deletions Redis/include/Poco/Redis/AsyncReader.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,8 @@ class Redis_API AsyncReader
AsyncReader(const AsyncReader&);
AsyncReader& operator = (const AsyncReader&);


Activity<AsyncReader> _activity;

Client& _client;
Activity<AsyncReader> _activity;
};


Expand Down

0 comments on commit 41bbe9a

Please sign in to comment.