[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH v4 3/5] char: unix/tcp: Add a non-blocking write
From: |
Amit Shah |
Subject: |
[Qemu-devel] Re: [PATCH v4 3/5] char: unix/tcp: Add a non-blocking write handler |
Date: |
Tue, 4 May 2010 13:26:23 +0530 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
On (Tue) May 04 2010 [09:43:04], Gerd Hoffmann wrote:
> On 05/04/10 09:17, Amit Shah wrote:
>> Add a non-blocking write handler that can return with -EAGAIN to the
>> caller and also callback when the socket becomes writable.
>>
>> Non-blocking writes are only enabled for sockets that are opened in
>> non-blocking mode and only for callers that have registered a callback
>> handler for resuming writes.
>
> The logic will be pretty much the same for all filehandle-based backends
> on unix. So maybe create some helper functions, so implementing
> $backend_chr_write_unblocked can be done with just three lines of code?
Yes, that's the next step. Let's push this for now and do that in a
later patch series?
Amit