aMule Forum
English => en_Bugs => Topic started by: stoatwblr 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.
-
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.
-
Please try this patch and tell me if it improves your reload time.
-
Wow...... about 5-10 times faster (at least)
-
Ah - first good news of the day. :)
-
Committed in 10155.
-
This sped up the gui as well - right click tab context menus also work reliably too.
-
and how can i reload the share, the button is gone since a view SVN?
-
Huh? It's on the right on top.