Skip to content

SHOULD DOCUMENT: UNIX SOCKETS ARE NOW SUPPORTED IN WINDOWS VIA ipc:// WITHOUT CHANGE TO PHP-ZMQ #239

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ClosetGeek-Git opened this issue Mar 22, 2025 · 0 comments

Comments

@ClosetGeek-Git
Copy link

AF_UNIX comes to Windows
https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/

libzmq quietly added support in 4.3.3, php-zmq seemingly supports without change

Image

Windows 11, PHP 8.4 AMD Ryzen 5 16 gb ddr3 ram. Push and Pull approx. 10,000 messages per second. Requires Windows 10

server.php

<?php

$server = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_PULL);
$server->bind("ipc://test.ipc");

$looped = 0;
/* Loop receiving and echoing back */
while ($message = $server->recv()) {
    echo $looped++."\r";
}

client.php

<?php

$client = new ZMQSocket(new ZMQContext(), ZMQ::SOCKET_PUSH);
$client ->connect("ipc://test.ipc");

while (1) {
    $client ->send("test");
}
@ClosetGeek-Git ClosetGeek-Git changed the title UNIX SOCKETS ARE NOW SUPPORTED IN WINODWS VIA ipc:// WITHOUT CHANGE TO PHP-ZMQ SHOULD DOCUMENT: UNIX SOCKETS ARE NOW SUPPORTED IN WINODWS VIA ipc:// WITHOUT CHANGE TO PHP-ZMQ Mar 22, 2025
@ClosetGeek-Git ClosetGeek-Git changed the title SHOULD DOCUMENT: UNIX SOCKETS ARE NOW SUPPORTED IN WINODWS VIA ipc:// WITHOUT CHANGE TO PHP-ZMQ SHOULD DOCUMENT: UNIX SOCKETS ARE NOW SUPPORTED IN WINDOWS VIA ipc:// WITHOUT CHANGE TO PHP-ZMQ Mar 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant