fix event-loop dead-lock on single-large-async write (#1)
remove #ifdef/#endif
fix code style
Merge branch 'fix/large-async-write' into develop