Re: [PATCH v5 1/2] io: Add support for MSG_PEEK for socket channel

2022-12-13 Thread Peter Xu
On Wed, Nov 23, 2022 at 05:27:34PM +, manish.mishra wrote: > MSG_PEEK reads from the peek of channel, The data is treated as > unread and the next read shall still return this data. This > support is currently added only for socket class. Extra parameter > 'flags' is added to io_readv calls to

Re: [PATCH v5 1/2] io: Add support for MSG_PEEK for socket channel

2022-11-29 Thread manish.mishra
On 29/11/22 7:57 pm, Peter Xu wrote: On Tue, Nov 29, 2022 at 04:24:58PM +0530, manish.mishra wrote: On 23/11/22 11:34 pm, Peter Xu wrote: On Wed, Nov 23, 2022 at 05:27:34PM +, manish.mishra wrote: MSG_PEEK reads from the peek of channel, The data is treated as unread and the next read sh

Re: [PATCH v5 1/2] io: Add support for MSG_PEEK for socket channel

2022-11-29 Thread Peter Xu
On Tue, Nov 29, 2022 at 04:24:58PM +0530, manish.mishra wrote: > > On 23/11/22 11:34 pm, Peter Xu wrote: > > On Wed, Nov 23, 2022 at 05:27:34PM +, manish.mishra wrote: > > > MSG_PEEK reads from the peek of channel, The data is treated as > > > unread and the next read shall still return this d

Re: [PATCH v5 1/2] io: Add support for MSG_PEEK for socket channel

2022-11-29 Thread manish.mishra
On 23/11/22 11:34 pm, Peter Xu wrote: On Wed, Nov 23, 2022 at 05:27:34PM +, manish.mishra wrote: MSG_PEEK reads from the peek of channel, The data is treated as unread and the next read shall still return this data. This support is currently added only for socket class. Extra parameter 'fl

Re: [PATCH v5 1/2] io: Add support for MSG_PEEK for socket channel

2022-11-23 Thread Peter Xu
On Wed, Nov 23, 2022 at 05:27:34PM +, manish.mishra wrote: > MSG_PEEK reads from the peek of channel, The data is treated as > unread and the next read shall still return this data. This > support is currently added only for socket class. Extra parameter > 'flags' is added to io_readv calls to

[PATCH v5 1/2] io: Add support for MSG_PEEK for socket channel

2022-11-23 Thread manish.mishra
MSG_PEEK reads from the peek of channel, The data is treated as unread and the next read shall still return this data. This support is currently added only for socket class. Extra parameter 'flags' is added to io_readv calls to pass extra read flags like MSG_PEEK. Reviewed-by: Daniel P. Berrangé