[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-core-devel
Subject: Re: PATCH: DCOPServer hanging on non responding client.
From: Michael Matz <matz () ifh ! de>
Date: 2001-01-24 0:36:35
[Download RAW message or body]
Hi,
On Tue, 23 Jan 2001, Waldo Bastian wrote:
> >
> > What danger of potential data loss does this method have?
Depends ;) Setting O_NONBLOCK on a fd, and then writing to it without it
accepting the data, simply returns (somewhen) with <= 0 bytes written,
which is interpreted by libICE as an error, so iceConn->io_ok is set to
False and all error callbacks are called. The data is forgotten (besides
that what happened to come through), and _IceWrite simply returns.
As long as an iceConn has the ->io_ok flag to false any _IceRead or
_IceWrite simply returns without producing further errors.
Ciao,
Michael.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic