1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 18:13:00 +01:00

32 Commits

Author SHA1 Message Date
Michael Dowling
3a0020170b Merge pull request #1203 from mortenhauberg/master
Yield key
2015-11-15 01:27:09 -08:00
Daniel Wehner
e464b0198d Use ::class in tests where it was possible 2015-09-09 11:17:23 +02:00
mortenhauberg
ca3d04d972 Yield key 2015-08-03 09:03:03 +02:00
Michael Dowling
a47dc8e99a Updating docs and host handlers are used 2015-04-18 11:08:00 -07:00
Michael Dowling
2325f7b1d3 Removing handler stack from the client 2015-04-17 19:59:11 -07:00
Michael Dowling
78ccbfb164 Adding MockHandler tests 2015-03-22 20:19:33 -07:00
Michael Dowling
f22fefeaea More functionality to MockHandler 2015-03-21 22:52:06 -07:00
Michael Dowling
ab1ef88b4c Finishing off remaining pool test 2015-03-21 16:16:49 -07:00
Michael Dowling
6386296592 Cleaning up Pool and test server 2015-03-21 15:33:30 -07:00
Michael Dowling
fd52370dd7 Updating for PSR7 changes and promise changes 2015-03-15 23:08:26 -07:00
Michael Dowling
99125ec94d Adding batching and multipart tests 2015-02-26 16:43:45 -08:00
Michael Dowling
b08fc28944 Adding pool tests 2015-02-25 22:49:50 -08:00
Michael Dowling
1a9ad6b553 WIP refactor for PSR-7 2015-02-25 14:50:44 -08:00
Liam O'Boyle
b2781f7537 Allow dynamic pool sizing.
Allows the number of requests allowed in a pool to vary over time by
retrieving the current pool size from a callback instead of a single
constant number.

This allows us to amend the number of requests ongoing according to our
needs, e.g. by responding to rate limiting information provided by an
upstream API.

Changes are

* Allow a callback to be passed in to specify the pool size instead of a
  constant pool size.
* As each request returns, add enough new requests to the queue to fill
  up to the current pool size limit.
2014-12-16 08:10:08 +11:00
Michael Dowling
8467cfec77 Preventing infinite recursion in Pool.
When requests are intercepted in a Pool, it can result in infinite
recursion. This commit modifies the Pool to inspect the promise type of
a request to see if it was completed or not. If the request is completed
after sending, then we wait on the request to emit any pending events
and use `goto` to send the next request and prevent the stack from
growing.

Closes #905.
2014-11-16 23:43:56 -08:00
Michael Dowling
eeb136826e Adding a Pool::send convenience method. Closes #874 2014-10-24 16:39:53 -07:00
Michael Dowling
2c2f1d7c47 Updating to use RingPHP and s/adapter/handle/g 2014-10-12 18:27:08 -07:00
Michael Dowling
46bead5c15 Updating for Guzzle-Ring changes 2014-10-06 22:25:04 -07:00
Michael Dowling
eaaf949638 removing request "cancellation" 2014-10-06 17:34:56 -07:00
Michael Dowling
87470bf043 Ensuring exceptions are not thrown in pool 2014-10-05 23:49:15 -07:00
Michael Dowling
b1fb453098 Fixing Pool tests 2014-10-05 18:51:07 -07:00
Michael Dowling
86600dec15 Starting to fix the pool object 2014-10-05 17:24:34 -07:00
Michael Dowling
6d1cf961a5 Getting most of the tests passing 2014-10-05 16:37:25 -07:00
Michael Dowling
5251f1067d Performance and updating to latest changes
Removing double-dispatch from MessageFactory and using a switch.
2014-10-05 00:11:40 -07:00
Michael Dowling
311122efa5 Fixing cancellation and some tests 2014-10-04 12:16:39 -07:00
Michael Dowling
175fbc8023 Updating to use interface changes 2014-09-30 10:52:33 -07:00
Michael Dowling
dbb6a30041 Don't deref cancelled responses 2014-09-23 17:15:41 -07:00
Michael Dowling
21956b5bc6 Lots of cleanup.
Adding tests.
Not emitting multiple "end" events when redirecting.
Moving wrapException to a public function.
Fixing Pool so that it works with completed  mocked futures.
Added a BatchResults class.
2014-09-20 17:11:47 -07:00
Michael Dowling
75e8893f88 Fixing pool, throwing exceptions correctly, not setting config value unless needed 2014-09-16 21:49:36 -07:00
Michael Dowling
cee099a079 Moving batch to Pool. Updating docs. Removing throwImmediately 2014-09-14 12:27:53 -07:00
Michael Dowling
447504d162 Adding convenience function to pool 2014-09-14 11:06:03 -07:00
Michael Dowling
1b9d5b3370 Fixing pool cancellation and adding tests 2014-09-14 10:29:43 -07:00