bug fix:

1, SetNonBlock returns bool-type, but handle as int32_t. which will make
a busy-waiting.