Skip to content

Puspin stops respecting URL authority on subsequent grip-link requests #48293

@eduardbareev

Description

@eduardbareev

the routes file:

*,proto=http,ssl=no,path_beg=/sse 172.18.0.5:80

Client calls pushpin and requests /sse, pushpin, calls 172.18.0.5 in turn.

172.18.0.5/sse responds with grip-link header set to <http://192.168.2.45/s.php>[…]

172.18.0.5/sse:

[…]
grip-hold: stream
grip-channel: channel_123
grip-channel: channel_777
grip-link: <http://192.168.2.45/s.php>; rel=next; timeout=3
[…]

Pushpin follows grip-link: and calls 192.168.2.45 requesting /s.php.

192.168.2.45 log shows the first and only request from pushpin:

"GET /s.php HTTP/1.1" 200 14 "-" "-" "-"

http://192.168.2.45/s.php response also includes grip-link header set to <http://192.168.2.45/s.php>[…] (same URL).

grip-link: <http://192.168.2.45/s.php>; rel=next; timeout=5
Grip-Hold: stream

Pushpin sends subsequent /s.php requests to 172.18.0.5 instead of 192.168.2.45, as instructed by grip-link.

172.18.0.5 log:

 "GET /sse HTTP/1.1" 200 15 "-" "curl/8.12.1"
 "GET /s.php HTTP/1.1" 404 153 "-" "-"       
 "GET /s.php HTTP/1.1" 404 153 "-" "-"       
 "GET /s.php HTTP/1.1" 404 153 "-" "-"       
 "GET /s.php HTTP/1.1" 404 153 "-" "-"       
 "GET /s.php HTTP/1.1" 404 153 "-" "-"       
 "GET /s.php HTTP/1.1" 404 153 "-" "-"       

Pushpin was built from pushpin-1.41.0.tar.bz2 tarball.

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