aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: CClientReqSocket::OnError keeps retrying  (Read 2358 times)

alehack

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
CClientReqSocket::OnError keeps retrying
« on: January 27, 2005, 03:32:18 PM »

Hi!
I have been wondering why amule uses more sockets than emule. In addition, the more time you use amule, the more connections it uses.

I have found one possible explanation for this. After taking a look at amule log I discovered the following messages:

01/27/2005 10:59:00 AM: An unnamed client (IP:AAA.BBB.CCC.DDD) caused a socket
blocking error. Retries: 0. Trying to reconnect... (retries left: 2)
...
01/27/2005 10:59:01 AM: An unnamed client (IP:AAA.BBB.CCC.DDD) caused a socket
blocking error. Retries: 0. Trying to reconnect... (retries left: 2)
...
01/27/2005 10:59:02 AM: An unnamed client (IP:AAA.BBB.CCC.DDD) caused a socket
blocking error. Retries: 0. Trying to reconnect... (retries left: 2)
...
01/27/2005 10:59:03 AM: An unnamed client (IP:AAA.BBB.CCC.DDD) caused a socket
blocking error. Retries: 0. Trying to reconnect... (retries left: 2)
...
01/27/2005 10:59:04 AM: An unnamed client (IP:AAA.BBB.CCC.DDD) caused a socket
blocking error. Retries: 0. Trying to reconnect... (retries left: 2)

It is worth noting that AAA.BBB.CCC.DDD are the SAME IP ADDRESS! This means that amule keeps retrying because "retries left" is always 2. This causes lots of problems for users with ISPs that limit the number of openned conenctions.

My quick solution is to comment :
  connection_retries = 0;
in:
  void CClientReqSocket::OnConnect(int nErrorCode)
in ListenSocket.cpp

I´m not sure if this is the correct solution, so I´m posting this here to get some feedback on this.

thanks
alehack
« Last Edit: January 27, 2005, 03:35:27 PM by alehack »
Logged

alehack

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 43
RE: CClientReqSocket::OnError keeps retrying
« Reply #1 on: February 02, 2005, 04:16:08 PM »

just FYI, amule has been using less connections with the fix.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: CClientReqSocket::OnError keeps retrying
« Reply #2 on: February 02, 2005, 06:24:59 PM »

Yeah, yeah ;)
Logged