This repository was archived by the owner on Jan 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +5
-7
lines changed
Common/src/Interop/Unix/libcurl
System.Net.Http/src/System/Net/Http/Unix Expand file tree Collapse file tree 3 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ internal void PollFds(List<libc.pollfd> readyFds)
117
117
// Whenever an fd is added/removed in _fdSet, a write happens to the
118
118
// write end of the pipe thus causing the poll to return.
119
119
pollFds [ 0 ] . fd = _specialFds [ libc . ReadEndOfPipe ] ;
120
- pollFds [ 0 ] . events = PollFlags . POLLIN | PollFlags . POLLOUT ;
120
+ pollFds [ 0 ] . events = PollFlags . POLLIN ;
121
121
int i = 1 ;
122
122
foreach ( int fd in _fdSet )
123
123
{
@@ -176,7 +176,6 @@ internal void PollFds(List<libc.pollfd> readyFds)
176
176
internal void SignalFdSetChange ( int fd , bool isRemove )
177
177
{
178
178
Debug . Assert ( Monitor . IsEntered ( this ) ) ;
179
-
180
179
bool changed = isRemove ? _fdSet . Remove ( fd ) : _fdSet . Add ( fd ) ;
181
180
if ( ! changed )
182
181
{
@@ -227,6 +226,7 @@ private int ReadSpecialFd(PollFlags revents)
227
226
{
228
227
return - 1 ;
229
228
}
229
+ Debug . Assert ( ( revents & PollFlags . POLLIN ) != 0 ) ;
230
230
int pipeReadFd = _specialFds [ libc . ReadEndOfPipe ] ;
231
231
int bytesRead = 0 ;
232
232
unsafe
Original file line number Diff line number Diff line change @@ -25,13 +25,13 @@ public static extern int curl_global_init(
25
25
public static extern void curl_multi_cleanup (
26
26
IntPtr handle ) ;
27
27
28
- [ DllImport ( Interop . Libraries . LibCurl , CharSet = CharSet . Ansi ) ]
28
+ [ DllImport ( Interop . Libraries . LibCurl ) ]
29
29
public static extern int curl_multi_setopt (
30
30
SafeCurlMultiHandle multi_handle ,
31
31
int option ,
32
32
curl_socket_callback value ) ;
33
33
34
- [ DllImport ( Interop . Libraries . LibCurl , CharSet = CharSet . Ansi ) ]
34
+ [ DllImport ( Interop . Libraries . LibCurl ) ]
35
35
public static extern int curl_multi_setopt (
36
36
SafeCurlMultiHandle multi_handle ,
37
37
int option ,
@@ -155,5 +155,5 @@ public static extern void curl_slist_free_all(
155
155
156
156
[ DllImport ( Interop . Libraries . LibCurl ) ]
157
157
public static extern IntPtr curl_version_info ( int curlVersionStamp ) ;
158
- }
158
+ }
159
159
}
Original file line number Diff line number Diff line change @@ -371,8 +371,6 @@ private static int CurlSocketCallback(
371
371
}
372
372
}
373
373
374
- CheckForCompletedTransfers ( state . SessionHandle ) ;
375
-
376
374
return retVal ;
377
375
}
378
376
You can’t perform that action at this time.
0 commit comments