Skip to content

Add support for ResponseController SetReadDeadline and SetWriteDeadline ? #2067

@fcx-mrogez

Description

@fcx-mrogez

What would it take to support ResponseController { SetReadDeadline, SetWriteDeadline } in fasthttp adaptor ?
Would calling the respective methods on the "w.handlerConn" [1] (with proper locking) be enough to implement them ?

My use case is when mixing tusd with fiber I use the provided adaptor.HTTPHandler whose ResponseWriter doesn't support the SetReadDeadline / SetWriteDeadline methods. This clutters the logs because of unsupported network features and kind of restrict our handling of timeouts.
To work around this I've re-implemented a simple adaptor with dummy implementation for SetReadDeadline / SetWriteDeadline but I'd like to see the root cause addressed instead of working around it.

Useful links:
[1] https://github.com/valyala/fasthttp/blob/master/fasthttpadaptor/adaptor.go#L279

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