© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
6 replies
Timinator

HttpListener

I'm currently writing an extreme lightweight HTTP server in PowerShell script(which very obviously utilizes the .NET framework). I want to figure out how to check if a connection is still alive before dispatching the response with HttpListenerResponse.Close(), because if i try to write to a dead connection it obviously throws errors, and i'd like to handle this gracefully before the catch block needs to trigger
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ HttpListener not starting
C#CC# / help
3y ago
❔ HttpListener Access Denied
C#CC# / help
3y ago
HttpListener listen on ipv6
C#CC# / help
4y ago
❔ HttpListener for single use request
C#CC# / help
3y ago