add socket timeout, and a bug fix for connection pool

connection wrap:
1.remove timeout event, use narmal err callback instead .
2.add socket timeout
3.format connection flag

pool:
1.fix a bug occured in a particular case .
2.fixed "Cannot enqueue Query after invoking quit" bug.