FIFO signaling producer that consumer has drained all bytes in pipe
Jason Mehrens
jason_mehrens at hotmail.com
Mon Aug 31 19:36:52 UTC 2020
I'm proposing that FileChannel should do what is done here:
http://hg.openjdk.java.net/jdk/jdk/file/1871c5d07caf/src/java.base/unix/native/libjava/io_util_md.c#l193
________________________________________
From: Florian Weimer <fw at deneb.enyo.de>
Sent: Sunday, August 30, 2020 12:14 PM
To: Jason Mehrens
Cc: nio-dev at openjdk.java.net
Subject: Re: FIFO signaling producer that consumer has drained all bytes in pipe
* Jason Mehrens:
> 2. FileChannel::size always returns zero. It would be much nicer if
> FileChannel::size returned bytes available.
Do you mean the data provided by the FIONREAD ioctl? Is that even
portable?
More information about the nio-dev
mailing list