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

Error-- server.serve_forever() #481

Closed
jamwu opened this issue Nov 2, 2018 · 0 comments
Closed

Error-- server.serve_forever() #481

jamwu opened this issue Nov 2, 2018 · 0 comments

Comments

@jamwu
Copy link

jamwu commented Nov 2, 2018

Exception in thread ftp:
Traceback (most recent call last):
  File "D:\Python34\lib\threading.py", line 921, in _bootstrap_inner
    self.run()
  File "D:\Python34\lib\threading.py", line 869, in run
    self._target(*self._args, **self._kwargs)
  File "E:\#Magic_Project#\magic\ftpServer.py", line 84, in start
    self.server.serve_forever()
  File "D:\Python34\lib\site-packages\pyftpdlib\servers.py", line 213, in serve_forever
    self.ioloop.loop(timeout, blocking)
  File "D:\Python34\lib\site-packages\pyftpdlib\ioloop.py", line 348, in loop
    poll(soonest_timeout)
  File "D:\Python34\lib\site-packages\pyftpdlib\ioloop.py", line 446, in poll
    r, w, e = select.select(self._r, self._w, [], timeout)
OSError:  [WinError 10038] an operation was attempted on something that is not a socket

I used python3 and can run the script.Connect the ftp server with filezilla on win10.When after some action(refresh,create file,write file,del file and so on) on filezilla,will get this error.anyone have an idear for this?

yuantailing added a commit to yuantailing/pyftpdlib that referenced this issue Jun 21, 2019
`self.create_socket` is not guaranteed to be assigned to the same `fd` as `self.bind_af_unspecified`.

If they are different, there is a closed socket in `Select._r` and the bug occurs.
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

1 participant