Hi Vadim,
 
> I got troubles to run licq on Solaris 9. After requesting login, and trying
> to connect to ICQ server I got "Connection reset by peer" error.
> I've tried other ICQ client (mICQ) it works fine.
> Can anyone help me?

I have the same problem with licq since upgrading to Solaris 9.
The problem is, that licq starts a new thread for every network packet
that has to be sent out. During log-in, it starts a lot of threads that
should actually run in sequential order, not independently scheduled the way
threads are. On most operating systems this turns out to work fine most of
the time, but in Solaris 9, the threads are often executed in another 
sequence than they were created. 

I have a rather dirty workaround: in icqd.cpp line 956, add a usleep(50000);
right after the thread creation. This gives the new thread enough time to
start and be scheduled before the next one is created, ensuring in-order
execution. This is only an ugly hack, not a fix for the problem, and it
doesn't even work 100% of the time.

A real fix of this problem will require quite a rewrite of the network-code,
there's been some discussion about this on the list already (see online
archives).

Regards, Paul Boven.
-- 
------------------------------------------------------------------
| "Rules exist to make you think before you break them" - Lu-Tze | 
------------------------------------------------------------------
| Paul Boven     <[EMAIL PROTECTED]>     PE1NUT     QRV 145.575  |
------------------------------------------------------------------
~


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Licq-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/licq-devel

Reply via email to