Closed rolfbjarne closed 3 years ago
Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.
Author: | rolfbjarne |
---|---|
Assignees: | - |
Labels: | `area-System.Net`, `untriaged` |
Milestone: | - |
CC @steveisok
/cc @vargaz @lambdageek
Does not seem like ReadFromConnection
is doing anything strange from the libraries side.
We're missing pinvoke callback attributes on ReadFromConnection
and WriteFromConnection
. They're stored in _readCallback
and _writeCallback
here and then passed to SslSetIoCallbacks
So they're reverse pinvokes and need the MonoPInvokeCallbackAttribute
(or the .net6 thing... whose name escapes me)
Tagging subscribers to this area: @dotnet/ncl See info in area-owners.md if you want to be subscribed.
Author: | rolfbjarne |
---|---|
Assignees: | - |
Labels: | `area-System.Net`, `untriaged` |
Milestone: | - |
Description
Calling the method
System.Net.SafeDeleteSslContext:ReadFromConnection
in AOT compiled code leads to:This is the complete stack trace from our test:
This is the test code: https://github.com/xamarin/xamarin-macios/blob/f5896c14141de86a377044bb0a66bbf8f982a1bb/tests/monotouch-test/System.Net.Http/MessageHandlers.cs#L106
Binlog for the test app: build-MacCatalyst-20210715_143948.binlog.zip
This is the part of the log that corresponds to the AOT compilation: https://gist.github.com/rolfbjarne/fc9f1316a92945fdde0f38ff1ede334f