Skip to content
Myr

Added "upload timeout" setting defaulting to 5 seconds

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by visionmedia · committed by visionmedia · parent 2701dfd · Browse files · 1 file+1 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−0 removed

  • other:+1 added−0 removed

1 file+1 added−0 removed

modified:lib/express/core.js+1 added
221 unmodified lines
222 var stream = new multipart.Stream(request),223 promise = new process.Promise,224 pendingFiles = 0225 request.params = { post: {}}226 promise.timeout(set('upload timeout') || 5000)227 stream.addListener('part', function(part){228 if (part.filename) {229 var file = new File(part.tempfile = '/tmp/express-' + Number(new Date) + uid(), 'w')230 ++pendingFiles
99 unmodified lines