This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

socket and timeouts


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]