Opened 7 years ago
Closed 7 years ago
#11506 closed Bug report (fixed)
filezilla server can't stop services
Reported by: | thegfw | Owned by: | Tim Kosse |
---|---|---|---|
Priority: | normal | Component: | FileZilla Server |
Keywords: | Cc: | ||
Component version: | 0.9.60.0 | Operating system type: | Windows |
Operating system version: | windows 7 |
Description
filezilla server can't stop services.
wait for hash threading "infinite waitting dead lock"
==================================
see hash_thread.cpp
void CHashThread::Loop()
{
fz::scoped_lock lock(mutex_);
while (!m_quit) {
cond_.wait(lock); dead lock here
DoHash(lock);
}
}
==================================
temp code:
void CHashThread::Loop()
{
fz::scoped_lock lock(mutex_);
while (!m_quit) {
fz::duration duration_time;
duration_time.from_milliseconds(100);
cond_.wait(lock, duration_time);
lock.unlock();
DoHash(lock);
lock.lock();
}
}
Change History (2)
comment:1 by , 7 years ago
Owner: | set to |
---|---|
Status: | new → assigned |
comment:2 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
A different fix has been committed to the repository.
Thank you for reporting this bug.
Unfortunately the suggested patch isn't good, it causes a wake-up every 100ms.
Incidentally, the bug was introduced when getting rid of such sources of wake-ups in FileZilla Server.