Displaying 4 results from an estimated 4 matches for "selfpip".
Did you mean:
selfip
2011 May 29
2
nearly-tickless-tinc
Hi,
tinc has a fixed timeout of 1 second for select() in the main
loop. I think this could be improved. Do you think the following
patch goes into the right direction ?
I don't know whether pselect() is standard enough (works under
"current" linux, however I don't know about the other arches). Maybe
a config option is necessary.
It's probably possible
2019 May 31
0
[libnbd] Simultaneous read and write
...events & POLLIN && dir & LIBNBD_AIO_DIRECTION_READ)
> nbd_aio_notify_read ();
> else if (pollfd[0].revents & LIBNBD_AIO_DIRECTION_WRITE)
and again
> nbd_aio_notify_write ();
> }
or in the nbdkit case:
nbdkit thread
nbd_aio_pwrite ();
write (selfpipe[1], &c, 1);
reader thread
for (;;) {
dir = nbd_aio_get_direction (nbd);
pollfd[0].fd = fd;
pollfd[0].events = 0;
pollfd[1].fd = selfpipe[0];
pollfd[1].events = POLLIN;
if (dir & LIBNBD_AIO_DIRECTION_READ) pollfd[0].events |= POLLIN;
if (dir & LIBNBD_AIO_D...
2019 May 31
4
[libnbd] Simultaneous read and write
This is a continuation of a discussion we were having on IRC. The
problems with IRC are it's not recorded and it's hard to have deep
technical conversations. I hope this is a decent summary.
Problem simply stated: Certain NBD servers (qemu-nbd in particular)
are able to simultaneously read and write on a socket. ie. They can
be simultaneously reading a request and writing the reply to
2013 Dec 09
2
[PATCH] rework master-to-worker signaling to use a pipe
...http_server.rb b/lib/unicorn/http_server.rb
index f15c8a7..ae8ad13 100644
--- a/lib/unicorn/http_server.rb
+++ b/lib/unicorn/http_server.rb
@@ -42,16 +42,8 @@ class Unicorn::HttpServer
# it to wake up the master from IO.select in exactly the same manner
# djb describes in http://cr.yp.to/docs/selfpipe.html
#
- # * The workers immediately close the pipe they inherit from the
- # master and replace it with a new pipe after forking. This new
- # pipe is also used to wakeup from IO.select from inside (worker)
- # signal handlers. However, workers *close* the pipe descriptors in
- # the si...