Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Conversation

@benaadams
Copy link
Contributor

_vectorCRs only needs to be allocated once rather than per object

@halter73
Copy link
Member

There be dragons hiding behind even the safest seeming changes. Look at all the ChunkedRequestsTests that failed on AppVeyor: https://ci.appveyor.com/project/aspnet-ci/kestrelhttpserver/build/1.0.1646/tests

It turns out that your change causes an InvalidProgramException to be thrown when ForChunkedEncoding is initialized on desktop CLR when Vector.IsHardwareAccelerated == True.

Interestingly if you add a second static vector to the ForChunkedEncoding everything seems to work correctly. This might be why we haven't seen this issue in Frame. This doesn't repro on my laptop since I don't get hardware acceleration of the desktop framework, but @CesarBS can repro it on his machine. We're looking into filing an issue with a simplified repo to dotnet.

@benaadams
Copy link
Contributor Author

@halter73 hmm that rings a bell... dab1a1f

@benaadams
Copy link
Contributor Author

benaadams commented May 24, 2016

Probably needs a comment on that line; I git blame myself 😞

@benaadams
Copy link
Contributor Author

Can't find any issue I raised for it either 👎

@cesarblum
Copy link
Contributor

It's super easy to repro. Filed https://github.com/dotnet/corefx/issues/8825.

@halter73
Copy link
Member

While we could do something adventurous like adding another static Vector to ForChunkedEncoding, I think we just add a comment for now. #877

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants