fixed issues with SetDeadline, SetReadDeadline and SetWriteDeadline