Write queue after connect windows

Use a pointer to the req, not an int.