Use constant value 1 instead of SHUT_WR in do_server