fixed araqne/issue#383. fixed invalid expire time and timeout time calculation
Merge branch 'master' of github.com:araqne/logdb