Hi.
I am looking at adding a socket timeout:
try
{
socket.setSoTimeout (TIMEOUT);
}
catch (SocketException se)
{
// we no care
}
To net.kano.joustsim.oscar.oscar.service.icbm.ft.controllers.AbstractOutgoingConnectionController
At line 66.
Is this a bad idea?
Is there a better place?
What about the server sockets, do you think they need one too?
- Alex.
Anyone knows what these are?
Getting a ton of these lately:
Unknown TLV's in InfoData: [TLV: type=0xb, length=4, …
Anything important?
Anyone wants to add these in?
Ok,
Doing a little debugging.
I am now in a state where the network socket has clearly been dropped. Netstat shows nothing. I am told by others I am not online (just for sanity check).
I put a breakpoint in AbstractFlapProcessor
block.write(out);
line 295.
Evaluating “out”, says that socket is happy, connected isn’t closing and life is otherwise fantastic.
Now would this be a bug with JDK?!
Cause this is insane.
Keith, is there something else I should look at?
Does anyone have sample code of how to delete contacts?
Mine d/n seem to quite do the job.
Maybe I am not getting the naming right, but why “group”?
I am trying to delete contacts, not groups.
And buddy manager (one that so nicely covers all buddy management) doesn’t have a delete method for a buddy, but only for a group…
What’s going on with naming here? Am I missing something and there’s an easier way through all this delete business?
From: joscar-...@googlegroups.com [mailto:joscar-...@googlegroups.com] On Behalf Of Keith Lea
Sent: Saturday, November 15, 2008
3:00 PM
To:
joscar-...@googlegroups.com
So, what’s the approach if I need to delete a buddy then? (say user clicks on a buddy in my list and says “Remove”).
Do I need to create some fake group, move that buddy to it and nuke the whole group?
Do I just expose the deleteBuddy function on DeleteMutableGroup?
Some third choice that I missed?
This isn’t self-explanatory, sorry to ask you like 3 times now :)
Ok, new version is 5x shorter… and works. Who knew it was all already there! J
Thanks, man.
If there are issues connecting, Oscar can get into a state where it d/n connect nor can I tell it to disconnect (and stop trying).
OscarConnection:256
if (disconnected) return false;
disconnect is always true. So I can’t execute conn.disconnect() couple lines below.
Not sure if this is a good test.
But that’s not enough either, because even if I debug-set that to false, and run conn.disconnect(), I keept getting:
Nov 17, 2008 1:34:38 AM net.kano.joustsim.oscar.ExternalServiceManager$4 run
INFO: External service for arbiter net.kano.joustsim.oscar.oscar.service.chatrooms.RoomFinderServiceArbiter@4a117f(0xd) timed out after 15.0s; retrying
Nothing crazy. But I’ve seen this happen from time to time, and this time I was armed with a debugger.