Bug 8397 - traceback if connection resets during http request stage
Summary: traceback if connection resets during http request stage
Status: NEW
Alias: None
Product: ThinLinc
Classification: Unclassified
Component: Misc (show other bugs)
Version: trunk
Hardware: PC Unknown
: P2 Normal
Target Milestone: LowPrio
Assignee: Bugzilla mail exporter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-25 11:18 CEST by Pierre Ossman
Modified: 2024-08-13 13:18 CEST (History)
0 users

See Also:
Acceptance Criteria:


Attachments

Description Pierre Ossman cendio 2024-07-25 11:18:35 CEST
Seen on production system, unknown what the client did:

> code 500, message Internal Server Error
> ----------------------------------------
> Exception happened during processing of request from ('::ffff:164.52.25.203', 59277, 0, 0)
> Traceback (most recent call last):
>   File "/opt/thinlinc/modules/thinlinc/httpserver.py", line 160, in handle_one_request
>     super ( ) . handle_one_request ( )
>   File "/usr/lib64/python3.9/http/server.py", line 401, in handle_one_request
>     self.raw_requestline = self.rfile.readline(65537)
>   File "/usr/lib64/python3.9/socket.py", line 704, in readinto
>     return self._sock.recv_into(b)
> ConnectionResetError: [Errno 104] Connection reset by peer
>
> During handling of the above exception, another exception occurred:
>
> Traceback (most recent call last):
>   File "/opt/thinlinc/modules/thinlinc/forkingserver.py", line 62, in process_request
>     self . finish_request ( request , client_address )
>   File "/opt/thinlinc/modules/thinlinc/tlwebaccess/server.py", line 453, in finish_request
>     super ( ) . finish_request ( request , client_address )
>   File "/opt/thinlinc/modules/thinlinc/httpserver.py", line 412, in finish_request
>     super ( ) . finish_request ( request , client_address )
>   File "/opt/thinlinc/modules/thinlinc/tlstunnel.py", line 74, in finish_request
>     self . RequestHandlerClass ( request , client_address , self )
>   File "/opt/thinlinc/modules/thinlinc/httpserver.py", line 83, in __init__
>     super ( ) . __init__ ( request , client_address , server )
>   File "/usr/lib64/python3.9/socketserver.py", line 747, in __init__
>     self.handle()
>   File "/usr/lib64/python3.9/http/server.py", line 433, in handle
>     self.handle_one_request()
>   File "/opt/thinlinc/modules/thinlinc/httpserver.py", line 167, in handle_one_request
>     self . send_error ( 500 )
>   File "/usr/lib64/python3.9/http/server.py", line 464, in send_error
>     self.send_response(code, message)
>   File "/opt/thinlinc/modules/thinlinc/httpserver.py", line 182, in send_response
>     super ( ) . send_response ( code , message )
>   File "/usr/lib64/python3.9/http/server.py", line 498, in send_response
>     self.log_request(code)
>   File "/opt/thinlinc/modules/thinlinc/httpserver.py", line 107, in log_request
>     self . requestline , str ( code ) , str ( size ) )
> AttributeError: 'i1Ii' object has no attribute 'requestline'
> ----------------------------------------
> Request timed out: client exceeded maximum timeout

Note You need to log in before you can comment on or make changes to this bug.