question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to write data to the transport connection: Broken pipe.

See original GitHub issue

Created a discussion about this earlier as I figured it was something common enough that I’ve probably messed up on my end, but the issue has been bugging me for weeks now and I haven’t been able to find the cause.

After observing it some more, at some point during the session there will appear an Unable to write data to the transport connection: Broken pipe. exception. I don’t know what exactly happens client-side for this exception to trigger, but when it happens it seems to massively snowball until the server is unable to handle connections and disconnections and eventually becomes unresponsive.

I’d love to hear any ideas about tackling this, and please let me know if there’s any relevant connection related code I can post that would make sense to look into. It’s becoming a massive problem in my game and requiring constant attention from me.

Thanks!

Issue Analytics

  • State:open
  • Created 5 months ago
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
teSillcommented, May 5, 2023

Restructured some things and started using Server.SendAsync instead of Server.Send and the issues appear a bit clearer now. It seems that there are 2 exceptions that lead to the Broken pipe and Cannot access a disposed object spam. More commonly it seems to be Connection timed out exception and more rarely No route to host. I haven’t enabled Keepalives by the way. After running into one of them, the server logs the Cannot access a disposed object exception hundreds of times. Now using the asynchronous methods it doesn’t clog up the entire traffic anymore and the problem doesn’t appear to cause as many issues (if any).

Still trying to come up with a way to reproduce the issue outside of production, will post the code here when/if I succeed.

0reactions
jchristncommented, May 6, 2023

Thanks for the update @teSill

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to write data to the transport connection: Broken pipe
"Broken pipe" means you attempt to write using a connection that have been closed by the other end. – Some programmer dude. Jul...
Read more >
Unable to write data to the transport connection: Broken ...
Unable to read data from the transport connection: Broken pipe. But I don't use SQL server. This error sometimes happens on console app...
Read more >
Unable to write data to the transport connection
Too large data model may be a reason for your scenario, maybe you can try to cut down you data size and try...
Read more >
IOException: Unable to write data to the transport connection
http://System.IO.IOException: Unable to write data to the transport connection: Broken pipe. dotnet/runtime/79976.
Read more >
Plashit SCM
"Unable to write data to the transport connection: Broken pipe." This error message is usually indicative of a network limitation preventing ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found