add check return result of call gettimeofday.
Fix a bug of tc_socket_send.

The bug arises when *send* system call returns with part of data transfered
and part of data still need to be sent again.
Merge pull request #162 from zausiu/upstream

Fix a bug of tc_socket_send.
Fix issue 158#5
fix the bug of tc_event_timer_run when timer handler is NULL.
Fix a small memory leak.
Merge branch 'upstream' of https://github.com/zausiu/tcpcopy4videoadgroup into develop
Merge branch 'dev' of https://github.com/soarpenguin/tcpcopy into develop
Merge all pull requests
Fix the dr problem
Fix the offline problem when configuring tcpcopy
Remove unneccessary log
fix a bug
restore
Merge branch 'master' of https://github.com/wangbin579/tcpcopy
fix a small big
restore
Merge branch 'master' of https://github.com/sherlockhua/tcpcopy into develop
Add more log for problem finding
Remove obsolete comments