[server] Fix bugs of block transfer timeouts.

* Use longer token timeout, 180 secs.
* Use longer block tx timeout, 30 secs.
* Reset timeout value before calling select().