Commit graph

22 commits

Author SHA1 Message Date
rfm
ed4e305026
NSURLSession rewrite (#422)
* clang-format: Do not use tabs

* Ignore clangd cache and compile_commands

* NSBlockOperation: Fix memory leak

* NSHTTPCookie: Fix expires date parsing

* NSHTTPCookie: Release DateFormatter after use

* NSOperation: Remove all objects at end of execution

* Reimplementation of NSURLSession

* NSURLSession: Update expiration dates in test

* Update ChangeLog

* Fix trivial compiler warning caused by missing import

* Import GSDispatch.h for definition of DISPATCH_QUEUE_SERIAL

* Import common.h early to avoid header conflict

* Fix import order to avoid conflicts and ensure we have correct localisation macro

* Check for presence of dispatch_cancel

* Cancel timer using dispatch_source_cancel() if dispatch_cancel() is missing.

* NSURLSession: Replace dispatch_io with dispatch_source in unit test HTTP server

---------

Co-authored-by: hmelder <service@hugomelder.com>
2024-08-16 14:08:41 +02:00
rfm
3fedf31c2d
Revert "NSURLSession Reimplementation (#411)"
This reverts commit 07233534e6.
2024-07-02 19:19:14 +01:00
Hugo Melder
07233534e6
NSURLSession Reimplementation (#411)
* clang-format: Do not use tabs

* Ignore clangd cache and compile_commands

* NSBlockOperation: Fix memory leak

* NSHTTPCookie: Fix expires date parsing

* NSOperation: Remove all objects at end of execution

* Reimplementation of NSURLSession

* Update ChangeLog
2024-07-02 15:58:48 +02:00
rfm
4233f6a9d6 fix dead assignments 2024-06-21 15:02:55 +01:00
hmelder
f6eaa5bd03 NSURLSession: Call completion handler on failed request 2024-05-08 16:05:17 +02:00
rfm
d52708e020 Fix for #385 2024-04-02 11:07:14 +01:00
rfm
ec914793c3 fix for #302 2024-02-11 19:50:06 +00:00
Riccardo Mottola
08858caf29 cleanup biolerplate comments, enable autogsdoc comments, cleanup some old RCS/CVS tags, fix emails 2023-12-23 02:44:50 +01:00
Riccardo Mottola
0547b18d32 remove some useless ; in declarations 2023-09-21 00:55:10 +02: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
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
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
Hugo Melder
a2eb35fd2f Remove undefined macro 2022-08-23 19:12:01 +02:00
Nuntius
b2983dc77a Workaround for the session retain loop 2021-09-04 13:07:14 +02:00
Nuntius
a0ab740234 Implement URLSession:downloadTask:didFinishDownloadingToURL: delegate 2021-08-28 20:33:19 +02:00
Nuntius
d3e40dfc9d Begin implementation of NSURLSessionDownloadTask 2021-08-27 21:56:08 +02:00
Richard Frith-Macdonald
782e7aed31 Fix for -setHTTPMaximumConnectionLifetime: 2021-05-05 12:04:28 +01:00
Richard Frith-Macdonald
1b7bf26bea Merge changes for NSURLSession from EngageHub (formerly Brainstorm). 2020-11-29 06:57:47 -05:00
Daniel Ferreira
7636967f30 api: generate stubs for new classes
Generate class stubs (without any method definition) for
NSFileCoordinator, NSFilePresenter, NSFileVersion and NSURLSession.
2017-06-29 21:18:16 +01:00