Re: Remote disconnect

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2007-09-20 at 12:33 +0200, Amnon David wrote:
> Hello,
> 
> I have a Java TCP server that uses java.nio and which is compiled with 
> gcc 4.1.2 (-f check references).
> 
> I've noticed that if I run the server on the standard Sun JVM, then when 
> a remote client that has previously connected to the server initiates a 
> disconnect, I receive an exception notifying that the connection was 
> lost for that client's channel. Handling this exception is crucial for 
> correct housekeeping of active client connections.
> 
> The problem is that no exception is thrown in this case on the gcj 
> compiled version on our ARM platform and I have to resort to ugly 
> workarounds to try and detect which socket is active and which is dead. 
> Has anyone encountered this problem or know of any solution ?
> 
> Note that I could not check whether this problem still exists when 
> compiling with gcc 4.2.1 since I can't even get that version to run a 
> simple Java "hello world" sample.
> 
> Thanks in advance for any help you can supply

Hi!

Could you try to run it on a different JVM which is using a current CVS
version of GNU Classpath?  Like CACAO, JamVM, Kaffe, ...  So we can find
out where the bug is, in GCJ itself (I don't think so) or the class
library.

- twisti



[Index of Archives]     [Linux Kernel]     [Linux Cryptography]     [Fedora]     [Fedora Directory]     [Red Hat Development]

  Powered by Linux