aungmyooo2k17
Is it possible to replicate the net::ERR_CONNECTION_RESET error at the client-side when making an API call or using a WebSocket?
I developed a live view application using Elixir, specifically a Phoenix application, and have been running it in the browser for an extended period of time. Occasionally, I encounter an error, such as net::ERR_CONNECTION_RESET, which completely removes the socket connection and prevents automatic reconnection. It appears as though the server is unable to transmit data to the client. To address this issue, I implemented error protection logic in my application. However, I would like to test the end-to-end flow of this error, but I am having difficulty reproducing the net::ERR_CONNECTION_RESET error in my Chrome browser.
First Post!
Aetherus
ERR_CONNECTION_RESET is a TCP-level error, which means the other end of the TCP connection sends a TCP packet with the RST flag set to 1.
screenshot taken from Wikipedia
The most common cause I have experienced is China’s evil and notorious Great Fire Wall (GFW) that sits in the middle of the client and the server, and sends RST packet to both ends to fool them that the other end does not want to establish such connection. If that’s the case, your only choice is to use a proxy or a VPN to bypass GFW.
Popular in Discussions
Other popular topics
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance










