Overview
Comment: | OFHTTP*: Use -[asyncReadLine:] for chunk size |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
ba4a65d3973e949ef9956809e8accfaf |
User & Date: | js on 2020-04-11 16:31:49 |
Other Links: | manifest | tags |
Context
2020-04-11
| ||
19:31 | Make OFObject.h and OFString.h C-safe check-in: 6e7e19252b user: js tags: trunk | |
16:31 | OFHTTP*: Use -[asyncReadLine:] for chunk size check-in: ba4a65d397 user: js tags: trunk | |
2020-04-05
| ||
14:22 | Work around musl having broken dlclose() check-in: 29c8a7106b user: js tags: trunk | |
Changes
Modified src/OFHTTPClient.m from [85a479fa56] to [8b55b3abfe].
︙ | ︙ | |||
991 992 993 994 995 996 997 | return length; } else { void *pool = objc_autoreleasePoolPush(); OFString *line; of_range_t range; @try { | | > > > | 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 | return length; } else { void *pool = objc_autoreleasePoolPush(); OFString *line; of_range_t range; @try { line = [_socket tryReadLine]; } @catch (OFInvalidEncodingException *e) { @throw [OFInvalidServerReplyException exception]; } if (line == nil) return 0; range = [line rangeOfString: @";"]; if (range.location != OF_NOT_FOUND) line = [line substringWithRange: of_range(0, range.location)]; if (line.length < 1) { |
︙ | ︙ |
Modified src/OFHTTPServer.m from [cf25c913ea] to [c13e2bacd9].
︙ | ︙ | |||
692 693 694 695 696 697 698 | return length; } else { void *pool = objc_autoreleasePoolPush(); OFString *line; of_range_t range; @try { | | > > > | 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 | return length; } else { void *pool = objc_autoreleasePoolPush(); OFString *line; of_range_t range; @try { line = [_socket tryReadLine]; } @catch (OFInvalidEncodingException *e) { @throw [OFInvalidFormatException exception]; } if (line == nil) return 0; range = [line rangeOfString: @";"]; if (range.location != OF_NOT_FOUND) line = [line substringWithRange: of_range(0, range.location)]; if (line.length < 1) { |
︙ | ︙ |