GithubHelp home page GithubHelp logo

ezshare's People

Watchers

 avatar  avatar  avatar

ezshare's Issues

EZShare lags the computer on large files

EZShare does not work on large files.

On large files, notably those larger than 200MB, the socket pool seems to go down. I hope you could resolve this by replacing reading files in chunks rather than reading in wholes.

This is the exact event log of the error:

D:\EZShare>python ezshare.py
[31/Jul/2016:11:31:54] ENGINE Listening for SIGTERM.
[31/Jul/2016:11:31:54] ENGINE Bus STARTING
[31/Jul/2016:11:31:54] ENGINE Set handler for console events.
[31/Jul/2016:11:31:54] ENGINE Started monitor thread '_TimeoutMonitor'.
[31/Jul/2016:11:31:54] ENGINE Serving on http://0.0.0.0
[31/Jul/2016:11:31:54] ENGINE Bus STARTED
127.0.0.1 - - [31/Jul/2016:11:31:56] "GET / HTTP/1.1" 200 1792 "" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:31:56] "GET /static/bootstrap/js/bootstrap.min.js HTTP/1.1" 304 - "http://localhost/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:31:56] "GET /static/bootstrap/css/bootstrap.min.css HTTP/1.1" 304 - "http://localhost/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:31:56] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 304 - "http://localhost/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:31:56] "GET /static/bootstrap/fonts/glyphicons-halflings-regular.woff2 HTTP/1.1" 304 - "http://localhost/static/bootstrap/css/bootstrap.min.css" "Mozilla/5.0 (Windows NT6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:33:09] "POST /upload HTTP/1.1" 200 22 "http://localhost/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:33:09] "GET / HTTP/1.1" 200 2099 "" "Mozilla/5.0 (Windows NT 6.3; WOW6; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:33:10] "GET /static/bootstrap/css/bootstrap.min.css HTTP/1.1" 200 122544 "http://localhost/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:33:10] "GET /static/bootstrap/js/jquery.min.js HTTP/1.1" 200 95962 "http://localhost/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:33:10] "GET /static/bootstrap/js/bootstrap.min.js HTTP/1.1" 200 36822"http://localhost/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:33:10] "GET /static/bootstrap/fonts/glyphicons-halflings-regular.woff2 HTTP/1.1" 200 18028 "http://localhost/static/bootstrap/css/bootstrap.min.css" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
127.0.0.1 - - [31/Jul/2016:11:33:12] "GET /download/cb4f3c27b5434f48ad61c2afb19b1644/341.92-quadro-grid-desktop-notebook-win8-win7-64bit-international-whql.exe?force_download=1 HTTP/1.1" 200 215849384 "http://localhost/" "Mozilla/5.0 (Windows NT 6.3; WOW64; rv:47.0) Gecko/20100101 Firefox/47.0"
[31/Jul/2016:11:33:14] ENGINE socket.error 10055
Traceback (most recent call last):
  File "C:\Programs\Python3\lib\site-packages\cherrypy\wsgiserver\wsgiserver3.py", line 1089, in communicate
    req.respond()
  File "C:\Programs\Python3\lib\site-packages\cherrypy\wsgiserver\wsgiserver3.py", line 877, in respond
    self.server.gateway(self).respond()
  File "C:\Programs\Python3\lib\site-packages\cherrypy\wsgiserver\wsgiserver3.py", line 1992, in respond
    self.write(chunk)
  File "C:\Programs\Python3\lib\site-packages\cherrypy\wsgiserver\wsgiserver3.py", line 2064, in write
    self.req.write(chunk)
  File "C:\Programs\Python3\lib\site-packages\cherrypy\wsgiserver\wsgiserver3.py", line 925, in write
    self.conn.wfile.write(chunk)
  File "C:\Programs\Python3\lib\site-packages\cherrypy\wsgiserver\wsgiserver3.py", line 1022, in write
    self._flush_unlocked()
  File "C:\Programs\Python3\lib\site-packages\cherrypy\wsgiserver\wsgiserver3.py", line 1031, in _flush_unlocked
    n = self.raw.write(bytes(self._write_buf))
  File "C:\Programs\Python3\lib\socket.py", line 593, in write
    return self._sock.send(b)
OSError: [WinError 10055] An operation on a socket could not be performed because the system lacked sufficient buffer space or because a queue was full


D:\EZShare>

Look forward to solving this issue!

P.S. This thing happens on shile too

Detect and report MIME types and character encoding

It would be nice if ezshare reported what those files are instead of just "utf-8 text". MIME types are reported by the browser on upload, so those could be stored. Character encoding can be detected with chardet

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.