Skip to content

No response after opensock #279

@LeafiWan

Description

@LeafiWan

Hello,

I have already startup tinyproxy service, it looks launched normally.

INFO      Dec 13 10:32:30 [8655]: Initializing tinyproxy ...
INFO      Dec 13 10:32:30 [8655]: Reloading config file
INFO      Dec 13 10:32:30 [8655]: listen_sock called with addr = '(NULL)'
INFO      Dec 13 10:32:30 [8655]: trying to listen on host[::], family[30], socktype[1], proto[6]
INFO      Dec 13 10:32:30 [8655]: listening on fd [5]
INFO      Dec 13 10:32:30 [8655]: trying to listen on host[0.0.0.0], family[2], socktype[1], proto[6]
INFO      Dec 13 10:32:30 [8655]: listening on fd [6]
WARNING   Dec 13 10:32:30 [8655]: Not running as root, so not changing UID/GID.
INFO      Dec 13 10:32:30 [8655]: Creating child number 1 of 10 ...
INFO      Dec 13 10:32:30 [8655]: Creating child number 2 of 10 ...
INFO      Dec 13 10:32:30 [8655]: Creating child number 3 of 10 ...
INFO      Dec 13 10:32:30 [8655]: Creating child number 4 of 10 ...
INFO      Dec 13 10:32:30 [8655]: Creating child number 5 of 10 ...
INFO      Dec 13 10:32:30 [8655]: Creating child number 6 of 10 ...
INFO      Dec 13 10:32:30 [8655]: Creating child number 7 of 10 ...
INFO      Dec 13 10:32:30 [8655]: Creating child number 8 of 10 ...
INFO      Dec 13 10:32:30 [8655]: Creating child number 9 of 10 ...
INFO      Dec 13 10:32:30 [8655]: Creating child number 10 of 10 ...
INFO      Dec 13 10:32:30 [8655]: Finished creating all children.
INFO      Dec 13 10:32:30 [8655]: Setting the various signals.
INFO      Dec 13 10:32:30 [8655]: Starting main loop. Accepting connections.

But when I use "curl --proxy 127.0.0.1:8888 -k https://www.google.com", this command got the response "curl: (56) Proxy CONNECT aborted", and the tinyproxy log shown

CONNECT   Dec 13 10:32:43 [8665]: Connect (file descriptor 11): localhost [127.0.0.1]
CONNECT   Dec 13 10:32:43 [8665]: Request (file descriptor 11): CONNECT www.google.com:443 HTTP/1.1
INFO      Dec 13 10:32:43 [8665]: No upstream proxy for www.google.com
INFO      Dec 13 10:32:43 [8665]: opensock: opening connection to www.google.com:443

And I change the https command to http command -- "curl --proxy 127.0.0.1:8888 -k http://www.google.com", it return "curl: (52) Empty reply from server".
The tinyproxy log shown:

CONNECT   Dec 13 10:32:47 [8664]: Request (file descriptor 11): GET http://www.google.com/ HTTP/1.1
INFO      Dec 13 10:32:47 [8664]: No upstream proxy for www.google.com
INFO      Dec 13 10:32:47 [8664]: opensock: opening connection to www.google.com:80

Then I try to sent a lot of http/https proxy request, log [NOTICE Dec 13 10:15:43 [8512]: Waiting servers (4) is less than MinSpareServers (5). Creating new child.] appears after [opensock] log.

What could be wrong in my system? Looking forward to your reply.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions