Skip to content

SynchronossPartGenerator should reuse PartBodyStreamStorageFactory [SPR-16727] #21268

Closed
@spring-projects-issues

Description

@spring-projects-issues

Julien Hoarau opened SPR-16727 and commented

SynchronossPartGenerator creates a new NioMultipartParser with:

NioMultipartParser parser = Multipart.multipart(context).forNIO(listener);

This will create a new DefaultPartBodyStreamStorageFactory each time. DefaultPartBodyStreamStorageFactory constructor will call File.exists, this could be "slow" on some system. We should have a single instance of DefaultPartBodyStreamStorageFactory and reuse it.


Issue Links:

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions