| 240 | if (&connection->getWritableTransportStream() == &connection->writableSocketStream) |
| 241 | { |
| 242 | SC_TRY(connection->writableSocketStream.init(connection->buffersPool, *eventLoop, connection->socket)); |
| 243 | } |
| 244 | SC_TRY(beginResponseRead()); |
| 245 | return beginRequestSend(); |
| 246 | } |
| 247 | |
| 248 | closeConnection(); |
| 249 | return beginSocketConnection(); |
| 250 | } |
| 251 | |
| 252 | Result HttpAsyncClient::beginSocketConnection() |
| 253 | { |
| 254 | char addressBuffer[256]; |
| 255 | Span<char> ipAddress = {addressBuffer}; |
| 256 | SC_TRY(SocketDNS::resolveDNS(currentURL.hostname, ipAddress)); |