TeamSmil3y / PigeonPost

Python web framework • apparently easy to use
https://docs.pigeon.teamsmiley.org
MIT License
1 stars 0 forks source link

:bug: non-critical bug when closing connections that have already been closed by client #54

Open lstuma opened 1 year ago

lstuma commented 1 year ago

Thread experiences error when closing connection

DEBUG    [HANDLER]           CLOSING CONNECTION TO 127.0.0.1:40060
VERBOSE  [HANDLER]           CLOSING CONNECTION FROM 127.0.0.1:40060
DEBUG    Exception in thread Thread-6 (handle_connection):
[HANDLER]           CLOSING CONNECTION TO 127.0.0.1:40062
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run
VERBOSE  [HANDLER]           RESPONSE SENT
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.11/site-packages/pigeon/core/handler.py", line 65, in handle_connection
    client_sock.shutdown(socket.SHUT_RDWR)
OSError: [Errno 107] Transport endpoint is not connected
VERBOSE  [HANDLER]           CLOSING CONNECTION FROM 127.0.0.1:40062
DEBUG    Exception in thread Thread-7 (handle_connection):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
[HANDLER]           CLOSING CONNECTION TO 127.0.0.1:40044
VERBOSE  [HANDLER]           CLOSING CONNECTION FROM 127.0.0.1:40044
    self.run()
  File "/usr/lib/python3.11/threading.py", line 975, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/python3.11/site-packages/pigeon/core/handler.py", line 65, in handle_connection
    client_sock.shutdown(socket.SHUT_RDWR)
OSError: [Errno 107] Transport endpoint is not connected