aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: EC timeout on "reload shared"  (Read 3475 times)

stoatwblr

  • Sr. Member
  • ****
  • Karma: 12
  • Offline Offline
  • Posts: 318
EC timeout on "reload shared"
« on: May 09, 2010, 03:28:35 PM »

This is consistent no matter how I compile things.

Currently running 10131  but it's been like it for a while

aMulecmd$ status
 > eD2k: Connected to P2P Cloud [193.107.208.38:4184] with HighID
 > Kad: Connected (ok)
 > Download:   58.39 kB/s
 > Upload:   49.99 kB/s
 > Clients in queue:   1625
 > Total sources:   1728
aMulecmd$ reload shared
ECSocket.cpp(204): ReadFromSocketAll: socket is blocking
No error happened
ECSocket.cpp(307): SendRecvPacket: error
aMulecmd$ status
 > Operation was successful.

The reload shared command is picked up by amuled, so are subsequent ones.

There are currently ~3000 shared files.

Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: EC timeout on "reload shared"
« Reply #1 on: May 09, 2010, 05:40:48 PM »

Well, sharing 3000 files is approaching limits. The reload task is done in the foreground and takes a while. Amulecmd uses synchronous communication which times out in this case. Some other things might break too (like connections can timeout). You did compile amuled with optimizations?

Moving the reload to a background thread might result in a lot of new and interesting problems, but would be the best solution.
But maybe a little tweak to the reload code might do the trick. I don't know what exactly takes so long, but I sure don't like that linear search in the known file list.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: EC timeout on "reload shared"
« Reply #2 on: May 09, 2010, 08:54:17 PM »

Please try this patch and tell me if it improves your reload time.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

stoatwblr

  • Sr. Member
  • ****
  • Karma: 12
  • Offline Offline
  • Posts: 318
Re: EC timeout on "reload shared"
« Reply #3 on: May 13, 2010, 08:45:47 PM »

Wow...... about 5-10 times faster (at least)
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: EC timeout on "reload shared"
« Reply #4 on: May 13, 2010, 10:40:52 PM »

Ah - first good news of the day.  :)
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: EC timeout on "reload shared"
« Reply #5 on: May 13, 2010, 11:32:28 PM »

Committed in 10155.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon

stoatwblr

  • Sr. Member
  • ****
  • Karma: 12
  • Offline Offline
  • Posts: 318
Re: EC timeout on "reload shared"
« Reply #6 on: May 17, 2010, 02:17:08 AM »

This sped up the gui as well - right click tab context menus also work reliably too.
Logged

Schuttwegraeumer

  • Sr. Member
  • ****
  • Karma: 2
  • Offline Offline
  • Posts: 421
Re: EC timeout on "reload shared"
« Reply #7 on: May 17, 2010, 08:58:05 AM »

and how can i reload the share, the button is gone since a view SVN?
Logged

Stu Redman

  • Administrator
  • Hero Member
  • *****
  • Karma: 214
  • Offline Offline
  • Posts: 3739
  • Engines screaming
Re: EC timeout on "reload shared"
« Reply #8 on: May 17, 2010, 07:27:05 PM »

Huh? It's on the right on top.
Logged
The image of mother goddess, lying dormant in the eyes of the dead, the sheaf of the corn is broken, end the harvest, throw the dead on the pyre -- Iron Maiden, Isle of Avalon