sta / sta/websocket-sharp

Sending large chunks of data

Open
#614 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C#
Stars
6.1k
Forks
1.7k
PR merge metrics
No merged PRs in 30d

Description

I'm currently creating a client that tries to send a large chunk of data (a PDF as a Base64 encoded string). I do manage so send a small string using the send method. But it fails with ""The sending has been interrupted." when trying to send the PDF (using myClient.Send(string) ).

I've also managed to create a server (using websocket-sharp) that when requested by a client returns the PDF using the Send method and this works without any issues.

I've also tried using the SendAsync without any success...

Any pointers? I assume that there's some limitation in the client's send capabilitites?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the failure with the client Send method and SendAsync using the Base64-encoded PDF, then compare it with the server's successful Send response. Trace the client send path and the handling of "The sending has been interrupted." Done means identifying whether a client payload limit or another failure is responsible and documenting or fixing the behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.