On Sun, Mar 20, 2016 at 4:18 PM, Сёма Мрачный <[email protected]>
wrote:

>  yep, I've missed that. can you explain it a bit more detailed about "may
>> block"? and why does daemon not *dhtget* requested resources by itself?
>>
>
It does exactly that ;-)

But remember 'dhtget' requests do also block (ie. they take some time to
complete). That's why we've an enqueuing mechanism specifically for them in
twister_io.js, since the browser only allows opening a limited number of
parallel requests to the same server.

For all other RPC we assume the time to complete is immediate, or at least
very fast, so we don't bother.



>
> I got
>
>> can't fetch URI "twist:CQAAAG4AAAA=": resource busy, try again
>>
> from Vegos's link. is it related?
>

ops, not really. that's a limitation of my implementation, sorry :(

It means we cannot perform two simultaneous decoding requests to the same
resource. So that's another reason we may want to serialize/enqueue
'decodeshorturl'.


> since there may be troubles with fetching and some links cannot be fetched
> at all even — I think we need to be always able to choose if we want to
> have links in a post shortened or not. I want to add tool bar to active
> textarea with buttons to format text and paste links. there may be a
> checkbox in link pasting dialog to short link or not.
>
>> Great idea, that would be very cool indeed!

You are right: if possible, not shortening the URL is the best (the
hassle-free) solution. So we should always prefer having the URL within the
post text and only resorting to shortener if user requests it.

regards,

Miguel

-- 
You received this message because you are subscribed to the Google Groups 
"twister-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to