fix close
add nodelay