ObjFW  Check-in [9764b0886f]

Overview
Comment:ofhttp: Fix error code not always being set
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9764b0886fb5eb5bd7007fbc6907b07b19f4473669015b2ec0562a403adfda7b
User & Date: js on 2019-09-07 23:33:13
Other Links: manifest | tags
Context
2019-09-14
23:24
Add +[OFSystemInfo supports{AESNI,SHAExtensions}] check-in: 4c19f80ab0 user: js tags: trunk
2019-09-07
23:33
ofhttp: Fix error code not always being set check-in: 9764b0886f user: js tags: trunk
23:28
Fix async connect with epoll check-in: 846125bed6 user: js tags: trunk
Changes

Modified utils/ofhttp/OFHTTP.m from [6d1ae6e71c] to [03652a6d82].

683
684
685
686
687
688
689

690
691
692
693
694
695
696
		[of_stderr writeLine: OF_LOCALIZED(@"download_failed",
		    @"%[prog]: Failed to download <%[url]>!",
		    @"prog", [OFApplication programName],
		    @"url", request.URL.string)];
	} else
		@throw e;


	[self performSelector: @selector(downloadNextURL)
		   afterDelay: 0];
}

-      (bool)stream: (OFStream *)response
  didReadIntoBuffer: (void *)buffer
	     length: (size_t)length







>







683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
		[of_stderr writeLine: OF_LOCALIZED(@"download_failed",
		    @"%[prog]: Failed to download <%[url]>!",
		    @"prog", [OFApplication programName],
		    @"url", request.URL.string)];
	} else
		@throw e;

	_errorCode = 1;
	[self performSelector: @selector(downloadNextURL)
		   afterDelay: 0];
}

-      (bool)stream: (OFStream *)response
  didReadIntoBuffer: (void *)buffer
	     length: (size_t)length