ObjFW  Check-in [9036359e2e]

Overview
Comment:OFHTTPClient: Fix type mismatch
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9036359e2eadf2a6bc5d73ab2df08b7b57f85086b523785790c6f0d2975d5b82
User & Date: js on 2018-12-18 17:14:16
Other Links: manifest | tags
Context
2018-12-18
21:17
Use OFData instead of a buffer for async UDP sends check-in: 0f3ae90eef user: js tags: trunk
17:14
OFHTTPClient: Fix type mismatch check-in: 9036359e2e user: js tags: trunk
17:10
Slightly decrease binary size check-in: 3501205f07 user: js tags: trunk
Changes

Modified src/OFHTTPClient.m from [4b4df1c5de] to [fddee74eee].

551
552
553
554
555
556
557
558
559
560
561
562





563
564
565
566
567
568
569
551
552
553
554
555
556
557





558
559
560
561
562
563
564
565
566
567
568
569







-
-
-
-
-
+
+
+
+
+







		[self raiseException: e];
		ret = false;
	}

	return ret;
}

- (OFData *)stream: (OF_KINDOF(OFStream *))stream
    didWriteString: (OFString *)string
	  encoding: (of_string_encoding_t)encoding
      bytesWritten: (size_t)bytesWritten
	 exception: (id)exception
- (OFString *)stream: (OF_KINDOF(OFStream *))stream
      didWriteString: (OFString *)string
	    encoding: (of_string_encoding_t)encoding
	bytesWritten: (size_t)bytesWritten
	   exception: (id)exception
{
	if (exception != nil) {
		if ([exception isKindOfClass: [OFWriteFailedException class]] &&
		    ([exception errNo] == ECONNRESET ||
		    [exception errNo] == EPIPE)) {
			/* In case a keep-alive connection timed out */
			[self closeAndReconnect];