fix a bug which causes timeout immediately when time a post at long long future.
and a bug that send a post even if the pid is not correct.