harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [classlib][LUNI | NIO] How to write stable tests for blocking write/read operations of Socket and SocketChannel
Date Sat, 24 Jun 2006 22:07:57 GMT
Geir Magnusson Jr wrote:
> You can't force a flush on the TCP stack, as it's pushing across the
> network, and has to handle retries, fragmentation, etc.

Agreed, you cannot push it all the way through the network.

> What I meant was mock to keep the OS out of it.
> However, I don't understand the exact problem, so will re-read the thread...

In this case Andrew is testing SocketChannel, so mock will get so far,
but I think he does need to test 'real' OS IO too.



Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

View raw message