fix set write deadline bug