1

What's the difference between ConnectionAbortedError and ConnectionRefusedError?

The documentation only specifies one is when a connection is aborted and the other when a connection is refused... not much help.

If I have a simple server and client in python and I'm using sockets how do I reproduce each exception?

walkman
  • 478
  • 1
  • 8
  • 21
  • 1
    Connection refused: https://stackoverflow.com/q/2333400/2864740 (search for “TCP connection refused” and “TCP connection aborted”; Python just proxies the underlying TCP network exceptions) – user2864740 May 24 '20 at 18:09
  • 2
    that opened a whole new world for me to search, many thanks – walkman May 24 '20 at 18:16

0 Answers0