Commit graph

12172 commits

Author SHA1 Message Date
Frederik Carlier
081f890be8 [NSData initWithBase64EncodedString]: Fix decoding of an empty string
Don't call `NSZoneRealloc` with a length of 0, but free the zone and return an empty `NSData` buffer instead.
2023-04-06 21:54:46 +00:00
Richard Frith-Macdonald
c7125ec291 Fix for github bug #289 2023-03-23 21:38:46 +00:00
Frederik Seiffert
8209793ac7 CI: fix MSVC builds when building dependencies 2023-03-11 20:22:00 +01:00
Frederik Seiffert
6acb0b27f7 CI: add tools-make/tools-windows-msvc branch name to run name 2023-03-11 20:22:00 +01:00
Frederik Seiffert
1835f3f549 NSURLSession: mark broken test as hopeful on Windows 2023-03-11 20:22:00 +01:00
Frederik Seiffert
72b1233c2a NSURLSession: fix memory management in GSTransferState 2023-03-11 20:22:00 +01:00
Frederik Seiffert
7e7cac89aa NSURLSession: fix libcurl debug output 2023-03-11 20:22:00 +01:00
Frederik Seiffert
1efd805421 NSURLSession: improve protocol detection 2023-03-11 20:22:00 +01:00
Frederik Seiffert
82d9917c2c NSURLSession: implement missing body data for data completion handlers
Now using the previously unused "in-memory" body data drain if a task has a completion handler, which requires the full body to be passed on completion.

Also consolidated private NSURLSessionTask methods, some of which were previously implemented twice in separate categories with the same name, leading to possible undefined runtime behavior.
2023-03-11 20:22:00 +01:00
Frederik Seiffert
153482ea94 NSURLSession: use mutable data for transfer state body 2023-03-11 20:22:00 +01:00
Frederik Seiffert
c0a6227013 NSURLSession: call getTasks callbacks on delegate queue
Matches the documented behavior.
2023-03-11 20:22:00 +01:00
Frederik Seiffert
3c27683c03 NSURLSession: create dispatch queues using target and use lock instead of queue for session identifier
Creating stand-alone dispatch queues without a target is discouraged.
2023-03-11 20:22:00 +01:00
Frederik Seiffert
15499e1017 NSURLSession: optimized timout timer and fixed memory management 2023-03-11 20:22:00 +01:00
Frederik Seiffert
cb6c53b84d Fix NSURLSession header fields not always being matched case insensitive. 2023-03-11 20:22:00 +01:00
Frederik Seiffert
18f81f9ccc Fix NSURLSession memory management of libdispatch objects and overrelease in GSHTTPURLProtocol. 2023-03-11 20:22:00 +01:00
Frederik Seiffert
2f5b26df06 Add missing NSURLSession APIs 2023-03-11 20:22:00 +01:00
Richard Frith-Macdonald
55e53caf28 Remove check on parameter nasmes in interface and implementation. We only need types to match 2023-02-10 09:41:10 +00:00
Richard Frith-Macdonald
3631c4b068 Fix possible exception setting header value 2023-02-09 11:03:21 +00:00
Richard Frith-Macdonald
b8aedfc53e Fix recently introduced bug with premature connection close 2023-02-01 19:17:12 +00:00
Richard Frith-Macdonald
b549e72432 assign result of init to self 2023-01-25 11:44:06 +00:00
Richard Frith-Macdonald
d17ad36c53 Tidied to assign result of init to self 2023-01-25 11:40:50 +00:00
Richard Frith-Macdonald
10f86fed2d revert stupid change 2023-01-24 14:09:53 +00:00
Richard Frith-Macdonald
35a763f3cb Aim to improve thread safety of stacktrace generation. 2023-01-24 11:35:14 +00:00
Frederik Seiffert
7c52bd7c21 CI: improve error handling and prevent GitHub rate limit errors 2023-01-17 09:21:13 +01:00
Frederik Seiffert
8e931a0b2c CI: fix Windows MSVC tests
Required due to tools-make change:
5ee21206a8
2023-01-16 19:35:59 +01:00
Frederik Seiffert
8ea4c32bb2 CI: fix Windows MSVC builds 2023-01-13 12:43:18 +01:00
Richard Frith-Macdonald
c6af8ef4bf bugfix release 2023-01-08 08:41:32 +00:00
Frederik Seiffert
e13195b44e CI: various improvements
- update GitHub actions (fixes Node.js 12 deprecation warnings)
- separate Linux and Windows jobs
- add option to specify tools-make branch for manual run
- Windows MSVC: use dependencies from pre-built release (with option to build dependencies via manual run)
- Windows MSVC: set GitHub token when building dependencies to prevent GitHub rate limit errors
- remove installation of libkqueue-dev package (not used by libdispatch)
- update dependencies from libobjc-9-dev to libobjc-10-dev
- add -q flag to git clone to prevent progress logs from spamming logs
2023-01-06 15:56:28 -06:00
Richard Frith-Macdonald
7f84bd9fc2 fix version number error 2022-12-28 12:55:54 +00:00
Richard Frith-Macdonald
24022dfe02 Add updated timeznes to release 2022-12-28 12:46:59 +00:00
Richard Frith-Macdonald
aeaca5ba49 New release 2022-12-28 11:46:43 +00:00
Fred Kiefer
47b6e9d052
Merge pull request #283 from qmfrederik/features/nsfilemanager-setattribute
implement setAttributes:ofItemAtPath:error: method
2022-12-11 18:14:26 +01:00
Doug Simons
bf586eca1b implement setAttributes:ofItemAtPath:error: method
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/branches/gnustep_testplant_branch@40428 72102866-910b-0410-8b05-ffd578937521
2022-12-09 15:58:39 +01:00
Richard Frith-Macdonald
91108c69c3 tweak handling of parser abort 2022-12-09 10:23:14 +00:00
Richard Frith-Macdonald
1cb6ef8572 Attept to support proxy environment variables 2022-11-29 11:16:36 +00:00
Fred Kiefer
1a96e83c08 * Source/Additions/GSXML.m: Remove usage of deprecated function
when a newer version of libxml is used.
2022-11-26 14:26:30 +01:00
Richard Frith-Macdonald
94a8b046b0 Patch for bug #63408 by Florian Weimer 2022-11-25 09:43:10 +00:00
Richard Frith-Macdonald
4a03bbc328 make bitfield flags obey consistency standards for BOOL ... set based on a C truth value, get a YES or a NO 2022-11-22 14:43:19 +00:00
Richard Frith-Macdonald
8cb9495ad7 Cosmetic coding standard tweak for clarity and to avoid unreasonably long lines. 2022-11-22 14:22:03 +00:00
Wolfgang Lux
47d2446df4 Really skip hidden files when requested in a directory enumeration 2022-11-21 12:03:06 +01:00
Richard Frith-Macdonald
d5d8a71c79 Allow certificate based rejection of DO connection attempts. 2022-11-21 10:40:33 +00:00
rfm
a9901204e2
Merge pull request #269 from gnustep/libcurl-autoconf
Rewrite autoconf libcurl detection
2022-11-21 10:30:41 +00:00
rfm
74fb16b0d0
Merge pull request #279 from onflapp/Documentation_missing_links
fix missing links in generated documentation
2022-11-21 10:28:42 +00:00
Richard Frith-Macdonald
326da37967 improve event handling when there is data in the tls buffers 2022-11-15 15:28:31 +00:00
Richard Frith-Macdonald
483777bfa9 improve event handling when data is in tls buffers 2022-11-15 15:27:04 +00:00
Richard Frith-Macdonald
78642305c6 Fix for occasional hang 2022-11-07 10:03:16 +00:00
rfm
84716e7d70
Merge pull request #281 from sbeard-eh/master
Fix for locale handling changes in ICU 64
2022-11-02 10:12:57 +00:00
sbeard-eh
1a3d869ab1
Fix for locale handling changes in ICU 64
Since ICU 64, the locale handling has changed such that passing an empty string to uloc_canonicalize no longer returns the en_US_POSIX locale as it did in previous versions. 
See https://icu.unicode.org/download/64#h.plg55ia6o3du
2022-11-01 20:20:48 +00:00
Richard Frith-Macdonald
37f5a2f9e1 tweak life of the I/O of a connection. 2022-10-21 16:37:54 +01:00
Richard Frith-Macdonald
09a9a8fe5b Honor SSL_CERT_FILE environment vartiable 2022-10-20 10:24:42 +01:00