Skip to content

Commit b15e03e

Browse files
committed
[HttpClient] Remove bindto workaround completely
Signed-off-by: Alexander M. Turek <me@derrabus.de>
1 parent 4cc7427 commit b15e03e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

src/Symfony/Component/HttpClient/NativeHttpClient.php

+1-6
Original file line numberDiff line numberDiff line change
@@ -187,11 +187,6 @@ public function request(string $method, string $url, array $options = []): Respo
187187
$options['timeout'] = min($options['max_duration'], $options['timeout']);
188188
}
189189

190-
$bindto = $options['bindto'];
191-
if (!$bindto && (70322 === \PHP_VERSION_ID || 70410 === \PHP_VERSION_ID)) {
192-
$bindto = '0:0';
193-
}
194-
195190
$context = [
196191
'http' => [
197192
'protocol_version' => min($options['http_version'] ?: '1.1', '1.1'),
@@ -220,7 +215,7 @@ public function request(string $method, string $url, array $options = []): Respo
220215
'disable_compression' => true,
221216
], static function ($v) { return null !== $v; }),
222217
'socket' => [
223-
'bindto' => $bindto,
218+
'bindto' => $options['bindto'],
224219
'tcp_nodelay' => true,
225220
],
226221
];

0 commit comments

Comments
 (0)