socket and timeouts
Nic Ferrier
nferrier@tapsellferrier.co.uk
Wed Jun 27 10:14:00 GMT 2001
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
More information about the Java
mailing list