Skip to content
This repository has been archived by the owner on Sep 14, 2021. It is now read-only.

Feedback #1

Closed
tpeczek opened this issue Aug 5, 2017 · 7 comments
Closed

Feedback #1

tpeczek opened this issue Aug 5, 2017 · 7 comments

Comments

@tpeczek
Copy link
Owner

tpeczek commented Aug 5, 2017

This issue is for general feedback regarding this project.

@tpeczek
Copy link
Owner Author

tpeczek commented Aug 5, 2017

@deandob @RyanLamansky @zygimantas

As you were interested in aspnet/WebSockets#19 I'm reaching out to you for some feedback.

I've created this library because I was in need and as I've decided to open source it I would want to make sure it is useful for others. The initial version was designed to be used in place of Microsoft.AspNetCore.WebSockets. If you are still interested in subject of WebSocket per-message compression in ASP.NET Core I would love to hear from you.

@deandob
Copy link

deandob commented Sep 10, 2017

Yes, interested thanks tpeczek. Won't get a chance to test it until October & will provide feedback then.

@Michael-Tajmajer-Emrsn
Copy link

I had success using your package with dot net core.

When I targeted net461 it failed. The first issue was that net461 Deflate doesn't add the if LAST_FOUR_OCTETS_OF_EMPTY_NON_COMPRESSED_DEFLATE_BLOCK. It seems that the block it creates is fine as is.

Adjusting TrimLastFourOctetsOfEmptyNonCompressedDeflateBlock() with a check for 0 solved that:

if(0 != lastFourOctetsOfEmptyNonCompressedDeflateBlockPosition)
Array.Resize(ref compressedMessagePayload, lastFourOctetsOfEmptyNonCompressedDeflateBlockPosition);

But, the socket will still error when running under net461. Do you have any thoughts on what to look at?

To test, I adjusted the demo project (attached).
Demo.AspNetCore.WebSockets.csproj.txt

@tpeczek
Copy link
Owner Author

tpeczek commented May 8, 2019

@Michael-Tajmajer-Emrsn I'll be honest I haven't used this much with .NET Framework (only some smoke tests back in the day). I should have a couple free hours on Friday so I'll sit down to it and take a look.

@Michael-Tajmajer-Emrsn
Copy link

Thank you for the response. No rush for us, we've decided to wait until our code is moved over to dotnet core, which does work well!

@tpeczek
Copy link
Owner Author

tpeczek commented May 10, 2019

@Michael-Tajmajer-Emrsn Thank you for letting me know. In general, you've got me interested in what might be going on, so I'll probably take a look anyway.

@tpeczek
Copy link
Owner Author

tpeczek commented Sep 14, 2021

Closing as project is being archived in favor of built-in WebSocket compression coming in ASP.NET Core 6.

@tpeczek tpeczek closed this as completed Sep 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants