This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
socket and timeouts
- To: java at gcc dot gnu dot org
- Subject: socket and timeouts
- From: "Nic Ferrier" <nferrier at tapsellferrier dot co dot uk>
- Date: Wed, 27 Jun 2001 18:10:45 +0100
As I understand the code. the current (v3.0) GCC implementation does
not implement socket read timeouts.
GNU-Paperclips needs socket read timeouts to implement HTTP/1.1
chunked encoding properly.
I've been thinking about how to add them, I thought a structure
similar to Classpath's (they don't support read timeouts either) might
work:
- add CNI read and write methods to PlainSocketImpl.java
(the current code uses the methods in FileDescriptor)
- make those implementations use select() if PlainSocketImpl.timeout
is non-zero
- add a SocketInputStream / SocketOutputStream which talk to the
PlainSocketImpl for reads and writes
Does anybody have any damning critisism of this plan? Is it a bad
plan? Is there another idea?
If it's an ok idea I'll have a bash at it.
Nic Ferrier