Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced StreamReader.Peek() #1380

Merged
merged 2 commits into from
Jul 12, 2022

Conversation

FerdiMeijer
Copy link
Contributor

Replaced Peek() function because of issue that occurs only in .net6.0 when downloading large object (e.g. 8000+ child objects) using the Speckle "ServerTransport"

Description

Because of a .net6.0 issue with StreamReader.Peek() see: dotnet/runtime#68983
The ServerTransport is using the .Peek() function to find the end of the stream and stop reading more object lines.

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How has this been tested?

-The changes to the Speckle Transport have been tested in a separate console app tool referencing the Speckle.Core project. It also has been tested as a Copy/CustomTransport supplied to the Operations.Receive in various production/test environments as a quick fix, it has not been tested as part of a development build of Speckle.Core 2.6.x

Docs

  • No updates needed

Replaced Peek() function because of issue that occurs only in .net6.0 dotnet/runtime#68983 when downloading large object (e.g. 8000+ child objects)
@FerdiMeijer FerdiMeijer requested a review from a team as a code owner July 5, 2022 08:03
@teocomi teocomi requested a review from JR-Morgan July 5, 2022 08:25
@JR-Morgan JR-Morgan changed the base branch from main to release/2.7 July 11, 2022 17:05
Copy link
Member

@JR-Morgan JR-Morgan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and approved!

@teocomi teocomi merged commit 04a99d2 into specklesystems:release/2.7 Jul 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants