xmcp / ezshare Goto Github PK
View Code? Open in Web Editor NEWEasy Temporary File Sharing Server
Easy Temporary File Sharing Server
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
Which sequence leads to a space in the downloaded file name? %20
?
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.