ObjFW  Check-in [1203f45de1]

Overview
Comment:OFHTTPClient: Enable non-blocking mode on socket
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 1203f45de17096de7d75c8f673e4ab2a7da3ac8a92fcf54a02a51576d3cc6a86
User & Date: js on 2021-11-21 00:41:59
Other Links: manifest | tags
Context
2021-11-21
10:13
README.md: Update iOS simulator instructions check-in: 2ca0e3c7d7 user: js tags: trunk
00:41
OFHTTPClient: Enable non-blocking mode on socket check-in: 1203f45de1 user: js tags: trunk
00:30
Add OFGnuTLSTLSStream check-in: 6b4dd1f24f user: js tags: trunk
Changes

Modified src/OFHTTPClient.m from [0ef7b9c0c4] to [0ddda28409].

633
634
635
636
637
638
639


640
641
642
643
644
645
646
	      port: (uint16_t)port
	 exception: (id)exception
{
	if (exception != nil) {
		[self raiseException: exception];
		return;
	}



	if ([_client->_delegate respondsToSelector:
	    @selector(client:didCreateTCPSocket:request:)])
		[_client->_delegate client: _client
			didCreateTCPSocket: sock
				   request: _request];








>
>







633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
	      port: (uint16_t)port
	 exception: (id)exception
{
	if (exception != nil) {
		[self raiseException: exception];
		return;
	}

	sock.canBlock = false;

	if ([_client->_delegate respondsToSelector:
	    @selector(client:didCreateTCPSocket:request:)])
		[_client->_delegate client: _client
			didCreateTCPSocket: sock
				   request: _request];