File tree Expand file tree Collapse file tree
src/Docker.DotNet/Microsoft.Net.Http.Client Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : CI
22
33on :
4- pull_request :
5- branches :
6- - main
4+ workflow_dispatch :
75
86jobs :
97 build :
10- runs-on : ubuntu-22.04
8+ runs-on : ubuntu-latest
119 services :
1210 # Docker without TLS (plain TCP) !DEPRECATED! with next docker release
1311 docker-no-tls :
Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ public async Task<string> ReadLineAsync(CancellationToken cancellationToken)
165165
166166 var lfIndex = - 1 ;
167167
168- bool crlfFound ;
168+ bool crlfFound = false ;
169169
170170 do
171171 {
@@ -177,23 +177,27 @@ public async Task<string> ReadLineAsync(CancellationToken cancellationToken)
177177 . ConfigureAwait ( false ) ;
178178 }
179179
180- var c = ( char ) _buffer [ _bufferOffset ] ;
181- line . Append ( c ) ;
182-
183- _bufferOffset ++ ;
184- _bufferCount -- ;
185-
186- switch ( c )
180+ // see https://github.com/dotnet/runtime/issues/107051
181+ if ( _bufferCount != 0 )
187182 {
188- case '\r ' :
189- crIndex = line . Length ;
190- break ;
191- case '\n ' :
192- lfIndex = line . Length ;
193- break ;
183+ var c = ( char ) _buffer [ _bufferOffset ] ;
184+ line . Append ( c ) ;
185+
186+ _bufferOffset ++ ;
187+ _bufferCount -- ;
188+
189+ switch ( c )
190+ {
191+ case '\r ' :
192+ crIndex = line . Length ;
193+ break ;
194+ case '\n ' :
195+ lfIndex = line . Length ;
196+ break ;
197+ }
198+
199+ crlfFound = crIndex + 1 == lfIndex ;
194200 }
195-
196- crlfFound = crIndex + 1 == lfIndex ;
197201 }
198202 while ( ! crlfFound ) ;
199203
Original file line number Diff line number Diff line change 11using System . IO ;
2+ using System . Net ;
23using System . Net . Security ;
34using System . Security . Cryptography . X509Certificates ;
45using Docker . DotNet . X509 ;
@@ -221,7 +222,8 @@ public static IEnumerable<object[]> GetDockerClientTypes()
221222 . Select ( t => new object [ ] { t } ) ;
222223 }
223224
224- return allClients . Select ( t => new object [ ] { t } ) ;
225+ //return allClients.Select(t => new object[] { t });
226+ return allClients . Where ( t => t == TestClientsEnum . ManagedHttps ) . Select ( t => new object [ ] { t } ) ;
225227 }
226228
227229 public static IEnumerable < TestDaemonsEnum > GetDockerDaemonTypes ( )
You can’t perform that action at this time.
0 commit comments