Skip to content

Commit 4150a00

Browse files
authored
Merge pull request #218 from php-http/no-dangerous-config
do not use dangerous configuration in examples
2 parents 344b487 + a6bfdff commit 4150a00

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

integrations/symfony-bundle.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,6 @@ show how you configure factory classes using Guzzle:
161161
uri_factory: Http\Message\UriFactory\GuzzleUriFactory
162162
stream_factory: Http\Message\StreamFactory\GuzzleStreamFactory
163163
164-
165-
166164
Configure Clients
167165
`````````````````
168166

@@ -184,8 +182,10 @@ services.
184182
acme:
185183
factory: 'httplug.factory.curl'
186184
config:
185+
# timeout if connection is not established after 4 seconds
187186
CURLOPT_CONNECTTIMEOUT: 4
188-
CURLOPT_SSL_VERIFYHOST: false
187+
# throttle sending data if more than ~ 1MB / second
188+
CURLOPT_MAX_SEND_SPEED_LARGE: 1000000
189189
190190
.. code-block:: php
191191

0 commit comments

Comments
 (0)