Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Align date time parsing with 8601 spec - #39187

Merged
JeremyKuhne merged 2 commits into
dotnet:masterfrom
JeremyKuhne:is8601
Jul 10, 2019
Merged

JeremyKuhne merged 2 commits into
dotnet:masterfrom
JeremyKuhne:is8601

Conversation

@JeremyKuhne

Copy link
Copy Markdown
Member
  • Clarifies what specification pieces we're adhering to
  • Reorganize code to expect completely valid UTF-8 sequence
  • Add corner cases and fix a few issues
  • Restructure parser to attempt to clarify state
  • Keep state in struct to avoid passing several parameters

- Clarifies what specification pieces we're adhering to
- Reorganize code to expect completely valid UTF-8 sequence
- Add corner cases and fix a few issues
- Restructure parser to attempt to clarify state
- Keep state in struct to avoid passing several parameters
@JeremyKuhne

Copy link
Copy Markdown
Member Author

System.Net.Http.Functional.Tests.HttpClientHandler_MaxResponseHeadersLength_Test.SetAfterUse_Throws failed on RedHat, looks to be a one-off issue.

Message :
System.Net.Http.HttpRequestException : Name or service not known
---- System.Net.Sockets.SocketException : Name or service not known
Stack Trace :
   at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) in /_/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:line 84
   at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean allowHttp2, CancellationToken cancellationToken) in /_/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 626
   at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /_/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 666
   at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /_/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 332
   at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean doRequestAuth, CancellationToken cancellationToken) in /_/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionPool.cs:line 524
   at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) in /_/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/RedirectHandler.cs:line 33
   at System.Net.Http.HttpClient.FinishSendAsyncUnbuffered(Task`1 sendTask, HttpRequestMessage request, CancellationTokenSource cts, Boolean disposeCts) in /_/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 553
   at System.Net.Http.HttpClient.FinishGetStreamAsync(Task`1 getTask) in /_/src/System.Net.Http/src/System/Net/Http/HttpClient.cs:line 294
   at System.Net.Http.Functional.Tests.HttpClientHandler_MaxResponseHeadersLength_Test.SetAfterUse_Throws() in /_/src/System.Net.Http/tests/FunctionalTests/HttpClientHandlerTest.MaxResponseHeadersLength.cs:line 54
--- End of stack trace from previous location where exception was thrown ---
----- Inner Stack Trace -----
   at System.Net.Http.ConnectHelper.ConnectAsync(String host, Int32 port, CancellationToken cancellationToken) in /_/src/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectHelper.cs:line 65

@JeremyKuhne
JeremyKuhne merged commit 1247fa7 into dotnet:master Jul 10, 2019
@JeremyKuhne
JeremyKuhne deleted the is8601 branch July 10, 2019 22:19
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
* Align date time parsing with 8601 spec

- Clarifies what specification pieces we're adhering to
- Reorganize code to expect completely valid UTF-8 sequence
- Add corner cases and fix a few issues
- Restructure parser to attempt to clarify state
- Keep state in struct to avoid passing several parameters

* Address feedback


Commit migrated from dotnet/corefx@1247fa7
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants