Handling large files better.
svn: r260
This commit is contained in:
parent
0d4bc2cd9d
commit
a2d54ace4d
|
@ -247,6 +247,8 @@
|
|||
(file-or-directory-modify-seconds file-path)
|
||||
mime-type)
|
||||
(when (eq? method 'get)
|
||||
; Give it one second per byte.
|
||||
(adjust-connection-timeout! conn (file-size file-path))
|
||||
(call-with-input-file file-path
|
||||
(lambda (i-port) (copy-port i-port (connection-o-port conn))))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user