aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Pages: 1 2 3 [4]

Author Topic: Active connections limit reached with amuled  (Read 20082 times)

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: Active connections limit reached with amuled
« Reply #45 on: May 07, 2005, 09:13:32 AM »

After exactly 2 days my connection limit was reached and never goes down again so I decided to compile the new CVS aMule and not the daemon.
The connection seems after over 13 hours stable but this has nothing to say since the daemon acts equal at this time. But I found another interesting thing.
With the daemon I have had only and average upload time of 10-20 mins in most cases (I have made no long tests so it may only happens some times). With normal aMule I have 41:30 minutes which seems quite stable. The total failed upload sessions are with 13 very low vs 225 total successful upload sessions.

cu
Mr Faber
Logged

lfroen

  • Guest
Re: Active connections limit reached with amuled
« Reply #46 on: May 07, 2005, 11:38:23 AM »

Please test following patch to amule cvs code. I would like to know if it changes things.
Logged

Xaignar

  • Admin and Code Junky
  • Hero Member
  • *****
  • Karma: 19
  • Offline Offline
  • Posts: 1103
Re: Active connections limit reached with amuled
« Reply #47 on: May 07, 2005, 12:18:36 PM »

Code: [Select]
+ if ( idle_count > 360000 ) {Shouldn't the 360000 be 12000, otherwise you'll wait for 360000 * 50ms, which would be 300 minutes, whereas 12000 * 50ms is 10 minutes exactly.
Logged

lfroen

  • Guest
Re: Active connections limit reached with amuled
« Reply #48 on: May 07, 2005, 03:05:57 PM »

Point taken. Patch corrected.

Code: [Select]
if ( m_socket->WaitForRead(0, 100) ) {
if ( m_socket->RecievePending() ) {
Sleep(50);
idle_count++;

This will take from 50 to 150 ms depending how match time WaitForRead took. So, 10000 translates to range 10000*(50ms ... 150ms) => 500sec ... 1500sec. I think it's enough time.
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: Active connections limit reached with amuled
« Reply #49 on: May 07, 2005, 04:24:26 PM »

Is this patch for aMuled or aMule? At first I will check aMule for at least 2 days to confirm that this has something to do with the daemon and not the monlith.

cu
Mr Faber
Logged

lfroen

  • Guest
Re: Active connections limit reached with amuled
« Reply #50 on: May 08, 2005, 05:13:17 AM »

Patch have nothing to do with monolitic amule. It affects only daemon code.
Logged

Mr Faber

  • Full Member
  • ***
  • Karma: 0
  • Offline Offline
  • Posts: 229
Re: Active connections limit reached with amuled
« Reply #51 on: May 08, 2005, 10:26:49 AM »

Since aMule crashes without user interaction I can't confirm definatly that aMule hasn't the problem but after over 20 hours the connection graph was still stable.
After that I have downloaded CVS 20050508 and compiled the daemon with your patch.

cu
Mr Faber
Logged

yoyoio

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 17
Re: Active connections limit reached with amuled
« Reply #52 on: May 08, 2005, 01:30:32 PM »

I can confirm that aMule hasn't the problem.

Now, I have compiled amule & amuled with wxGTK 2.6, amule is very stable and works very fine, but amuled don't upload neither donwload anything, or only 1 client uploading a few seconds a few bytes and nobody in queue.

amule: active connections 60 more or less.

aMule CVS using wxGTK2 v2.6.0 (Unicoded) (Snapshot: Sat May  7 07:01:19 CEST 2005) (OS: Linux)

aMule Daemon CVS using wxGTK2 v2.6.0 (Unicoded) (Snapshot: Sat May  7 07:01:19 CEST 2005) (OS: Linux)
Logged

BeFalou

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: Active connections limit reached with amuled
« Reply #53 on: May 08, 2005, 06:50:33 PM »

amuled is unable to run for a long time, it crashes, so I can't reproduce this. I've posted the BT here: http://forum.amule.org/thread.php?threadid=6080&sid=

It's with today's CVS and lfroen's patch.
Logged

BeFalou

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: Active connections limit reached with amuled
« Reply #54 on: May 09, 2005, 11:45:51 PM »

I'm sorry to say that the patch is not working. The image attached is the connection graph after 1D 3h. It hasn't reached the top yet but it's a lot more compared to amule monolithic graphs (posted before).
Logged

lfroen

  • Guest
Re: Active connections limit reached with amuled
« Reply #55 on: May 14, 2005, 02:56:26 PM »

Hmmmm ... I will check uploading code as well, but this code is shared between amule and amuled, so I would be very surprized to find a difference :)
Logged

BeFalou

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: Active connections limit reached with amuled
« Reply #56 on: May 17, 2005, 06:39:22 PM »

Another point that makes me think it is an upload thing is that all established connections are from my amuled port to others, while when we download from others this connections are made with other ports.

Maybe this thinking is stupid but I had to say it  :rolleyes:
Logged

lfroen

  • Guest
Re: Active connections limit reached with amuled
« Reply #57 on: May 27, 2005, 01:02:53 AM »

amuled network code has been reworked. Please feel free to test cvs versions !

[Kry - Edit (fill free?)]
Logged

BeFalou

  • Jr. Member
  • **
  • Karma: 0
  • Offline Offline
  • Posts: 53
Re: Active connections limit reached with amuled
« Reply #58 on: May 27, 2005, 09:49:53 AM »

Thanks for the hard work, but by now I can't test it for long, it crashes. BT -> http://forum.amule.org/thread.php?threadid=6347&sid=

Regards.
Logged
Pages: 1 2 3 [4]