Skip to content

when reconfiguring, no check for changed appmods is done #457

@etnt

Description

@etnt

case {yaws_config:can_hard_gc(GC, OLDGC),

When running Yaws in embedded mode, and you want to disable an appmod; using the yaws_api:setconf/2 does
not seem to take into account that any appmod config may have changed. Hence, the appmod may be still be invoked (or not)
even if it has been removed (added).

To test my hypothesis, in our application code I called yaws_config:hard_setconfig/2 instead of yaws_api:setconf/2
and now, since the currently running processes are killed, it works as expected to add/remove appmods when reconfiguring.

So I'm not sure if it is ok to change the behaviour of the current yaws_api:setconf/2 function, or if we should add a new
function "yaws_api:hard_setconf/2" (or just call yaws_config:hard_setconfig/2 , but that is a bit ugly imo...).

Cheers, Tobbe

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