shan muh
unread,Jun 24, 2008, 6:31:40 PM6/24/08Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to one-stone-soup
Hi,
I think there is a bug in the HUB server. In case of up "screen"
connection, the timeout of the up stream connection (client->hub-
>server) should be set to 0. Indeed, no data is sent from the client
to the server in case of "screen" connection. I patched the code in
socketConnection.initialize() with the following code:
int upTimeout = 10000;
int downTimeout = 10000;
if(alias.endsWith(".screen"))
upTimeout = 0;
up = new
StreamConnection(socket1.getInputStream(),socket2.getOutputStream(),"Up
Stream Connection for "+alias,upTimeout);
down = new
StreamConnection(socket2.getInputStream(),socket1.getOutputStream(),"Down
Stream Connection for "+alias,downTimeout);
The hub works fine now.
Best regards
Shan