Skip to content

feedback on access log showing two connections #50

Description

@patch-work
> git clone https://github.com/allinurl/gwsocket.git
> cd gwsocket
> autoreconf -fiv
> ./configure
> make
> doas dmesg -w | ./gwsocket --port 4000 --access-log=/dev/stdout
127.0.0.1 - - [27/Jun/2023:23:33:05 +0200] "GET / HTTP/1.1" 400 651 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" 0
127.0.0.1 - - [27/Jun/2023:23:33:05 +0200] "GET / HTTP/1.1" 200 651 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" 0
127.0.0.1 - - [27/Jun/2023:23:33:13 +0200] "GET / HTTP/1.1" 400 651 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" 0
127.0.0.1 - - [27/Jun/2023:23:33:13 +0200] "GET / HTTP/1.1" 200 651 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36" 0

For each browser connection, the server logs two connections, where the first one is a rejection (400).

This is Fedora Linux 38.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions