Skip to content

Server: get notified if transfer is aborted ? #930

@ottigeda

Description

@ottigeda

In some code using a httplib::Server() I would like to learn when a client aborts the transfer,
or if the file was successfully and completely delivered to the client.
I did think Server::set_error_handler would do the job, but for me the error handler never gets called.
Is this a bug, or did I not fully understand what is the purpose of the error handler ?

In my test I use wget to download a bigger file from a httplib::Server(),
which serves the contents using a content provider.
When I abort the wget I expected that the error handler gets called,
but it does not do that for me.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions