Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashing on python 3.9.6 #7

Closed
Dlanis opened this issue Jul 8, 2021 · 3 comments
Closed

Crashing on python 3.9.6 #7

Dlanis opened this issue Jul 8, 2021 · 3 comments

Comments

@Dlanis
Copy link

Dlanis commented Jul 8, 2021

Now serving on http://192.168.0.3:8091/1.tar.gz
192.168.0.100 - - [09/Jul/2021 00:42:12] "GET /1.tar.gz HTTP/1.1" 200 -
[Errno 104] Connection reset by peer
Connection broke. Aborting
Exception ignored in: <function _Stream.__del__ at 0x7f9901c31f70>
Traceback (most recent call last):
  File "/usr/lib/python3.9/tarfile.py", line 410, in __del__
    self.close()
  File "/usr/lib/python3.9/tarfile.py", line 460, in close
    self.fileobj.write(self.buf)
  File "/usr/lib/python3.9/socketserver.py", line 826, in write
    self._sock.sendall(b)
OSError: [Errno 9] Bad file descriptor
192.168.0.100 - - [09/Jul/2021 00:42:14] "GET /1.tar.gz HTTP/1.1" 200 -
[Errno 104] Connection reset by peer
Connection broke. Aborting
Exception ignored in: <function _Stream.__del__ at 0x7f9901c31f70>
Traceback (most recent call last):
  File "/usr/lib/python3.9/tarfile.py", line 410, in __del__
    self.close()
  File "/usr/lib/python3.9/tarfile.py", line 460, in close
    self.fileobj.write(self.buf)
  File "/usr/lib/python3.9/socketserver.py", line 826, in write
    self._sock.sendall(b)
OSError: [Errno 9] Bad file descriptor

@CoolCat467
Copy link

This may have something to do with the particular file you are trying to send because of file descriptor error. Especially since it appears to have been caused by something tarfile was trying to send ending up being sent by server.

@simon-budig
Copy link
Owner

This may have something to do with the particular file you are trying to send because of file descriptor error. Especially since it appears to have been caused by something tarfile was trying to send ending up being sent by server.

I agree, this kind of error happens when the remote side cancels the transfer.

Arguably I could try to catch that error and give a nicer error message.

@Dlanis
Copy link
Author

Dlanis commented Sep 15, 2021

Now works nice,,,

@Dlanis Dlanis closed this as completed Sep 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants