search for: nbd_set_threaded_read

Displaying 2 results from an estimated 2 matches for "nbd_set_threaded_read".

2019 Jun 01
0
Re: [libnbd] Simultaneous read and write
...aw struct socket, but in this case would work by adding the same layer over the threaded read struct socket. The actual mechanics of this are a bit more complex than described: - We will need the caller to tell libnbd that we want to use the handle in this way, requiring a function such as nbd_set_threaded_read() to be called before connection. The purpose of this is to ensure our connect calls set up a threaded read struct socket instead of the normal raw struct socket. - We may still need a pipe-to-self. I'm not sure if this is really necessary, but if so nbd_set_threaded_read can retur...
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