Skip to content

Fixed pool cleanup - #24

Open
stop777 wants to merge 12 commits into
Lispython:masterfrom
stop777:master
Open

Fixed pool cleanup#24
stop777 wants to merge 12 commits into
Lispython:masterfrom
stop777:master

Conversation

@stop777

Copy link
Copy Markdown
Contributor

There was an Exception when calling AsyncClient.get after AsyncClient.start finished first time

@stop777

Copy link
Copy Markdown
ContributorAuthor

Also commit 0bb00b1, fixes situation when server returns HTTP Status header twice. Example http://cox.com - returns ('HTTP/1.1', '301', 'Moved Permanently'), then ('HTTP/1.1', '200', 'OK'). This causes exception

File "human_curl/core.py", line 781, in _parse_headers_raw
self._headers = CaseInsensitiveDict(last_header[1:])
File "human_curl/utils.py", line 104, in __init__
tmp_d = dict(*args, **kwargs)

@stop777

Copy link
Copy Markdown
ContributorAuthor

А чего c pool cleanup?

Может этот request зарубить?

вместо 0bb00b1, сделал другой фикс. В отдельном реквесте #25

…responses. e.g.
see "Apache" header
$ curl -q -v http://khabarfarsi.com > /dev/null
* About to connect() to khabarfarsi.com port 80 (#0)
* Trying 176.9.154.107...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0* connected
* Connected to khabarfarsi.com (176.9.154.107) port 80 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.28.1
> Host: khabarfarsi.com
> Accept: */*
>
< HTTP/1.1 200 OK
< Apache
< Content-Type: text/html; charset=utf-8
< Vary: Accept-Encoding, Cookie
< Etag: "1363793834-0"
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@stop777@Lispython