Skip to content

Realtime stream doesn't works #72

@cr0hn

Description

@cr0hn

When you launch a tool that write into the stdout, but doesn't write a lot to information, Kapow! doesn't send the console information until the tools finish their execution.

Example:

nmap.pow:

kapow route add -X POST /nmap-stream - <<-'EOF'
    {
        nmap -Pn -T1 -n -p - -v $(kapow get /request/form/ip)
    } | kapow set /response/stream

EOF

Curl call:

$ curl -v http://localhost:9001/nmap-stream -d "ip=127.0.0.1"

Also tried forcing HTTP2 in curl:

$ curl --http2 -v http://localhost:9001/nmap-stream -d "ip=127.0.0.1"

Curl doesn't receive any data until nmap finish.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions