ObjFW  Check-in [fb064dae9a]

Overview
Comment:Don't assume length == 0 means closed.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: fb064dae9af8efcf74eebd74e984b12182fb64e8e893fa904f241e614ad4a4c1
User & Date: js on 2012-09-26 20:11:36
Other Links: manifest | tags
Context
2012-09-29
10:49
OFHTTPRequest: Fix too early release. check-in: 7a8056d3ed user: js tags: trunk
2012-09-26
20:11
Don't assume length == 0 means closed. check-in: fb064dae9a user: js tags: trunk
2012-09-25
09:44
Selector name consistency. check-in: bb5822582b user: js tags: trunk
Changes

Modified src/OFHTTPRequest.m from [c7bd138f6a] to [ad751773f4].

461
462
463
464
465
466
467


468
469
470

471
472
473
474
475
476
477
478
					    exceptionWithClass: [self class]];

				objc_autoreleasePoolPop(pool2);
			}
		} else {
			size_t length;



			while ((length = [sock
			    readIntoBuffer: buffer
				    length: of_pagesize]) > 0) {

				void *pool2 = objc_autoreleasePoolPush();

				[delegate request: self
				   didReceiveData: buffer
				       withLength: length];

				objc_autoreleasePoolPop(pool2);








>
>
|
|
|
>
|







461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
					    exceptionWithClass: [self class]];

				objc_autoreleasePoolPop(pool2);
			}
		} else {
			size_t length;

			while (![sock isAtEndOfStream]) {
				void *pool2;

				length = [sock readIntoBuffer: buffer
						       length: of_pagesize];

				pool2 = objc_autoreleasePoolPush();

				[delegate request: self
				   didReceiveData: buffer
				       withLength: length];

				objc_autoreleasePoolPop(pool2);