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

Author Topic: Resharing after file removal.  (Read 8050 times)

slystone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Resharing after file removal.
« on: October 31, 2008, 12:51:48 PM »

Hi,

I'm using amuled.

when files are removed from the download directory are they also automatically removed from the share? Or have I to force resharing? If yes, how is possibile this operation with amuled? I don't want to restar it.

I tried to get this info looking into the source code, but I was not able to find this information by myself.

Tank you very much,

slY
Logged

lfroen

  • Guest
Re: Resharing after file removal.
« Reply #1 on: October 31, 2008, 01:19:57 PM »

when files are removed from the download directory are they also automatically removed from the share?
Yes
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Resharing after file removal.
« Reply #2 on: October 31, 2008, 01:48:09 PM »

No. Only when someone starts downloading that file from you.
Logged

slystone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Resharing after file removal.
« Reply #3 on: October 31, 2008, 02:09:51 PM »

No. Only when someone starts downloading that file from you.
So, remove files from the download folder is a bad option or not?

I don't want users to stay in queue waiting for a file that no longer exists.

It's not polite :)
« Last Edit: October 31, 2008, 02:13:09 PM by slystone »
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Resharing after file removal.
« Reply #4 on: October 31, 2008, 04:49:28 PM »

It is a bad option. You can reload your shares with an amulecmd command, I'm pretty sure.  Just open amulecmd and type "help".
Logged

slystone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Resharing after file removal.
« Reply #5 on: October 31, 2008, 05:23:41 PM »

It is a bad option. You can reload your shares with an amulecmd command, I'm pretty sure.  Just open amulecmd and type "help".

You are right!

The command is"reload shared"

I did't saw it :D

Tank you very much!
Logged

minage

  • Full Member
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 117
Re: Resharing after file removal.
« Reply #6 on: November 01, 2008, 02:03:45 AM »

as i could see, amule remove a file from shared-list when it can't read it (file not found for example).
but anyway it got an error first...

best way is to reload shared (with amulecmd).
Logged

lfroen

  • Guest
Re: Resharing after file removal.
« Reply #7 on: November 01, 2008, 11:03:50 AM »

No. Only when someone starts downloading that file from you.
Which, in my world is equivalent to "yes". Any P2P system is "best effort", not "guaranteed service". So, it doesn't matter (statistically) when (at which point in time) file being removed from queue.
Logged

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Resharing after file removal.
« Reply #8 on: November 01, 2008, 10:12:45 PM »

A small bug I obseverd on amuled/amuleweb 2.2.2: when removing a shared file through amuleweb while someone is downloading it, amuleweb seems to crash almost every time.
@slystone: does this happen in your setup as well?
Logged

slystone

  • Approved Newbie
  • *
  • Karma: 0
  • Offline Offline
  • Posts: 7
Re: Resharing after file removal.
« Reply #9 on: November 01, 2008, 11:15:41 PM »

@slystone: does this happen in your setup as well?
No, for now I've not noticed it, I rarely use the web interface, and much more rarely for remove files. I should try it.
Logged

Kry

  • Ex-developer
  • Retired admin
  • Hero Member
  • *****
  • Karma: -665
  • Offline Offline
  • Posts: 5795
Re: Resharing after file removal.
« Reply #10 on: November 02, 2008, 12:59:48 AM »

No. Only when someone starts downloading that file from you.
Which, in my world is equivalent to "yes". Any P2P system is "best effort", not "guaranteed service". So, it doesn't matter (statistically) when (at which point in time) file being removed from queue.


Publication of files to servers/kad that are not there is bad. It happens, there is no sensible solution for us other than tell the user that is better to reload shareds. But removing it from the folder will NOT remove it from shared files UNLESS someone asks for it AND reaches the top of the queue, as explained before. That's what he asked, and your answer was incomplete, if not wrong.
Logged

lfroen

  • Guest
Re: Resharing after file removal.
« Reply #11 on: November 02, 2008, 05:06:03 AM »

All this very interesting and 100% correct. Let's see whether it have any effect in real life.
Take a look on those events:
* File is removed from shared
* User reach top of queue

Those events are 1) uncorrelated and 2) relatively rare. Given this, probability of "user reaches top of queue but file not there" doesn't change whether you reload file or not. See Poisson  distribution. http://en.wikipedia.org/wiki/Poisson_distribution
Logged

Coronas

  • Approved Newbie
  • *
  • Karma: 1
  • Offline Offline
  • Posts: 48
Re: Resharing after file removal.
« Reply #12 on: November 02, 2008, 08:05:17 PM »

Poisson distributions don't apply here, sorry.
The situation reminds me of Schrödingers cat.
Logged

lfroen

  • Guest
Re: Resharing after file removal.
« Reply #13 on: November 03, 2008, 10:34:46 AM »

Poisson distributions don't apply here, sorry.

Why? Because you say so? How about doing your homework before posting?

Quote
Publication of files to servers/kad that are not there is bad.
Yes, but effect is minimal unless significant %% of your files are "not there". This would make "fake server".

Quote
And it affects all users searching such file.
You assume that once you hit "reload", all KAD nodes are instantly updated. They are not.
Logged

lfroen

  • Guest
Re: Resharing after file removal.
« Reply #14 on: November 03, 2008, 10:39:42 AM »

Poisson distributions don't apply here, sorry.
The situation reminds me of Schrödingers cat.

And this reminds me of Chewbacca defense. Since Poisson distribution have nothing to do with Schrödingers cat. Do you any idea what "Schrödingers cat" is?
Logged
Pages: [1] 2