-
Notifications
You must be signed in to change notification settings - Fork 20
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
fixed httpserver.r2py to work properly for Repy v2 and new unit test for it #150
base: master
Are you sure you want to change the base?
Conversation
test file for httpserver.r2py
unit test for httpserver.r2py
Updated doc string to have some more info
|
# raises. However, it just raises plain exceptions. | ||
# Read chunks from the callback and efficiently send them to | ||
# the client using HTTP/1.1 chunked encoding. | ||
_httpserver_sendfile_chunked(sock, messagestream) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be try-catch block is required here or in httpserver_sendfile_chunked to handle the "filelikeobj.read" exceptions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filelikeobj is object of _httpserver_StringIO class and read() is calling this class's read method. It is handling the ValueError if the class object is closed.
httpretrieve.r2py is left intentionaly as dylink.r2py needs some ammendment
restrictions.threeports is added in place of restrictions.default as two different ports were needed for callback method hosted on server and client
Also mentioned the reason in comments to leave httpretrieve.r2py module with dy_import_module_symbols
Changed waitforconn docstring for callback function to take five arguments instead of one.
No description provided.