Check if socket is writable before writing to it…