ObjFW  Check-in [7d78a2b675]

Overview
Comment:OFTCPSocket: Properly close socket on error
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 7d78a2b67591a3eb8e27bd71cf6826dd46ec977a763dec323672d3d24534e1a1
User & Date: js on 2019-03-19 22:23:02
Other Links: manifest | tags
Context
2019-03-19
22:36
OFHTTPClient: Compare port using -[isEqual:] check-in: eadd1a0c54 user: js tags: trunk
22:23
OFTCPSocket: Properly close socket on error check-in: 7d78a2b675 user: js tags: trunk
01:39
ofhttp: Parse unquoted Content-Disposition check-in: ec962afb8e user: js tags: trunk
Changes

Modified src/OFTCPSocket.m from [e57d0397dd] to [8d03fd4bac].

218
219
220
221
222
223
224


225
226
227
228

229
230
231
232
233
234
235
236
237
238
218
219
220
221
222
223
224
225
226
227
228
229

230
231
232

233
234
235
236
237
238
239







+
+



-
+


-







#endif
}

- (void)of_socketDidConnect: (OFTCPSocket *)sock
		  exception: (id)exception
{
	if (exception != nil) {
		[sock of_closeSocket];

		if (_socketAddressesIndex >= _socketAddresses.count) {
			_exception = [exception retain];
			[self didConnect];
		} else {
		} else
			[self tryNextAddressWithRunLoopMode:
			    [OFRunLoop currentRunLoop].currentMode];
		}

		return;
	}

	if (_SOCKS5Host != nil)
		[self sendSOCKS5Request];
	else