Skip to content

Commit 8bc6638

Browse files
committed
Remove support for Unix domain sockets (UDS) for now
1 parent ce6a7a2 commit 8bc6638

File tree

4 files changed

+0
-63
lines changed

4 files changed

+0
-63
lines changed

README.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ mess with most of the low-level details.
5050
* [Advanced](#advanced)
5151
* [Sender](#sender)
5252
* [SOCKS proxy](#socks-proxy)
53-
* [Unix domain sockets](#unix-domain-sockets)
5453
* [Options](#options)
5554
* [Install](#install)
5655
* [Tests](#tests)
@@ -487,22 +486,6 @@ This works for both plain HTTP and SSL encrypted HTTPS requests.
487486

488487
See also the [SOCKS example](examples/11-socks-proxy.php).
489488

490-
### Unix domain sockets
491-
492-
This library also supports connecting to a local Unix domain socket (UDS) path.
493-
You have to explicitly create a legacy [`Sender`](#sender) that passes every
494-
request through the given UNIX domain socket.
495-
For consistency reasons you still have to pass full HTTP URLs for every request,
496-
but the host and port will be ignored when establishing a connection.
497-
498-
```php
499-
$path = 'unix:///tmp/daemon.sock';
500-
$sender = Sender::createFromLoopUnix($loop, $path);
501-
$client = new Browser($loop, $sender);
502-
503-
$client->get('http://localhost/demo');
504-
```
505-
506489
### Options
507490

508491
Note: This API is subject to change.

src/Io/FixedUriConnector.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/Io/FixedUriConnectorTest.php

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/Io/SenderTest.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,6 @@ public function testCreateFromLoop()
2323
$this->assertInstanceOf('Clue\React\Buzz\Io\Sender', $sender);
2424
}
2525

26-
public function testCreateFromLoopUnix()
27-
{
28-
$sender = Sender::createFromLoopUnix($this->loop, 'unix:///run/daemon.sock');
29-
30-
$this->assertInstanceOf('Clue\React\Buzz\Io\Sender', $sender);
31-
}
32-
3326
public function testSenderConnectorRejection()
3427
{
3528
$connector = $this->getMock('React\Socket\ConnectorInterface');

0 commit comments

Comments
 (0)