Re: GIOChannel missing binary mode?



	I've been thinking some more about the buffered, nonblocking
case, where the message read function was hanging in the
G_IO_STATUS_AGAIN busy loop. What may have been happening
was than the write component was writing without flushing.
There was therefore a partial message in the read channel,
which was hanging in the busy loop while trying to read it.

I think if you made all the channels nonblocking and added a flush
after every message write it would work fine. On the other hand,
considering how short the messages are, you're probably better
off just going with unbuffered writes until you get around
to rewriting this section of gimp code.

Ron Steinke




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]