Comments (2)
I forgot to say, if you change the request to $request = "https://www.google.com/?q=".$randomWord;
, the output is:
Progress::SENDING_REQUEST
Progress::SENDING_REQUEST
Progress::AWAITING_RESPONSE
Progress::READING_UNKNOWN
Progress::COMPLETE
which is weird.
from http-client.
These issues have been addressed in the following commits:
This commit improves the error message to help indicate the real problem in this case (a failed socket connection) and provides advice to ease debugging.
In the case of the duplicate Progress::SENDING_REQUEST
constants the same status was being assigned both when the socket connection was acquired and again when the request was written to the server. This commit adds a new Progress constant, Progress::CONNECTED
to differentiate between the two states.
from http-client.
Related Issues (20)
- 5.x: Undefined array key 1689, Http2ConnectionProcessor.php:1316 HOT 5
- 5.x: Review Form API
- Memory issue in HTTP 2 connection HOT 1
- 5.x: Call to a member function getFuture() on null HOT 3
- If a response redirects, it sends back raw gzip instead of decoded content HOT 1
- `Form` not sent with same semantics as `FormBody` HOT 4
- Remove UnprocessedRequestException HOT 1
- Beta 11 encodes repeated form fields differently HOT 2
- Double redirect still returns gzip compressed data
- 4.x's php version depends changed because of league/uri HOT 2
- Log errors in LogHttpArchive
- [v5.0.0-beta.14] Invalid request phase transition from Connect to RequestHeaders HOT 4
- Amp\Http\Client\TimeoutException: Allowed transfer timeout exceeded, took longer than 10 s in /home/madeline/vendor/amphp/http-client/src/Connection/Internal/Http2ConnectionProcessor.php:1562 HOT 1
- Allow detection whether a connection has been reused
- [v5.0.0 Beta 15] Invalid request phase transition from Rejected to Failed HOT 1
- requestEnd() is not called in event listener in sync mode. HOT 5
- Response streaming during request upload
- Invalid certificate throws a misleading error
- [5.1.0] Deadlock and warnings when Http2 connection breaks HOT 1
- Unexpected behavior: Closing body stream result in an error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-client.