Skip to content

PowerNap is not thread-safe #4

Description

@ghidinelli

Don't know if anyone is still using PowerNap (legacy installs maybe) but we just discovered that PowerNap is not thread-safe. Under load, requests and responses will be swapped.

This is because PowerNap does not create a new representation for each request. We heard intermittent mentions of this but until we started using our withHeaders() enhancement, we saw custom headers adding up and up and up instead of getting cleared after each request.

I've rewritten the Engine.cfc and other components to use a factory and create new representations for each request if anyone is interested.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions