ObjFW  Diff

Differences From Artifact [4b4df1c5de]:

To Artifact [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];