[
https://issues.apache.org/struts/browse/STR-3096?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_42688
]
Dave Newton commented on STR-3096:
----------------------------------
(Paul: ControllerConfig has the bufferSize.)
Increasing the buffer to 100K isn't going to do what you think it does, though;
a buffer that large would probably end up being more CPU-intensive since the
underlying IO would probably end up breaking it up into a normal buffer size
anyway for writing.
> bufferSize in controller configuration does not work
> ----------------------------------------------------
>
> Key: STR-3096
> URL: https://issues.apache.org/struts/browse/STR-3096
> Project: Struts 1
> Issue Type: Bug
> Components: Core
> Affects Versions: 1.3.9
> Environment: simple struts web application with file-upload feature
> Reporter: AdNovum
> Assignee: Paul Benedict
> Priority: Minor
> Fix For: Pending Review
>
>
> Controller configuration allows to set a buffer size to be used when doing
> file uploads (described in online documentation):
> <controller
> className="..."
> processorClass="..."
> inputForward="true"
> bufferSize="102400"
> >
> ...
> Unfortunately it seems that this value is never propagated to the
> implementation classes (CommonsMultipartRequestHandler, DiskFileUpload and
> FileUploadBase)
> from struts and apache commons-fileupload. So the default buffersize (4K) is
> used which could possibly lead to bad performance (high CPU usage).
> Either the bufferSize should take effect or it should not be available as a
> configuration attribute.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.