Skip to content

SynchronossPartGenerator should reuse PartBodyStreamStorageFactory [SPR-16727] #21268

Closed

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:

Activity

  1. spring-projects-issues commented on Apr 16, 2018

    @spring-projects-issues
    CollaboratorAuthor

    Rossen Stoyanchev commented

    This could also help to address the race condition from #21180.

  2. added this to the 5.0.6 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions