Re: remote-xpath-queries

Kimbro Staken <[email protected]> Sat, 8 Nov 2003 16:02:58 -0700
Newsgroups gmane.comp.web.syncato.general
Message-ID <[email protected]>
Yep, I'm glad you picked that query. I knew there were going to be all 
kinds of gotchas with this kind of thing. We just have to figure them 
out and how to deal with them.

This particular issue is interesting. It could be a real problem if we 
habitually used that technique to quote stuff off other sites. In 
particular if you had a real conversation going back and forth it would 
be easy to end up with a recursive reference like that.

I'm inclined to think that having live references for quotes may not be 
a good use of the technique. A better use is something like the 
reference to the Syncato features list that you have. That gives you a 
live updating list that will stay current. Although I do think there 
are some other interesting possibilities for distributed conversations.

Disabling recursive execution of the remote-xpath-query tag is one 
obvious way to address this particular problem. Unfortunately the real 
problem is actually the GIL and the fact that libxslt is a C library.

On Nov 8, 2003, at 5:39 PM, darryl wrote:

> That's cool,
>
> that's how we figure stuff out right?
>
> Anyways yes, my site was down. I had to go in and delete all items 
> with those remote-xpath-queries as everytime the site tried to render 
> it brought the site down with some tracebacks.
>
> I'm going to try again though.....
>
> -darryl
>
>> I was trying to post a follow up, but for some reason couldn't. Looks 
>> like your site is down right now.
>>
>> There are two problems, the simple one is that you need to remove the 
>> whitespace around the content of the remote-xpath-query tag.
>>
>> A more serious problem appears to be with recursive call backs into 
>> the same system. You're doing a query on my site for all 
>> remote-xpath-query tags and then running those queries from within 
>> your system. I then have a query that runs against your site. So the 
>> problem is that when you make the original XSL document() request 
>> it's inside a C call which holds the Python GIL so any subsequent 
>> calls into the system will block until that original XSL call 
>> completes. Because of this the subsequent call-back into your system 
>> blocks until the original document call times out and the XSL 
>> completes releasing the GIL. Ugh, in other words it don't work right. 
>> :-)
>>
>> This  makes the remote-xpath-query tag a little more risky to use 
>> then I would like.
>>
>> So the simple answer is that your system is setup correctly, you just 
>> had white space in the tag, but removing the whitespace then results 
>> in a hanging request. The quick fix is to not run a query that will 
>> recursively access your system.
>>
>> Fun, fun, lots to learn about this kind of interaction. It's funny, 
>> you picked what is probably the worst possible query you could do. 
>> :-)
>>
>> On Nov 8, 2003, at 4:58 PM, darryl wrote:
>>
>>> kimbro i saw your comment on my weblog. I believe i have the most 
>>> recent files that you mentioned i have:
>>>
>>> lib.xsl rev 1.6
>>> WeblogXslExtension.py rev 1.2
>>>
>>> There's nothing else that i have to do?
>>>
>>> -darryl
>>>
>>>
>>>
>>> -------------------------------------------------------
>>> This SF.Net email sponsored by: ApacheCon 2003,
>>> 16-19 November in Las Vegas. Learn firsthand the latest
>>> developments in Apache, PHP, Perl, XML, Java, MySQL,
>>> WebDAV, and more! http://www.apachecon.com/
>>> _______________________________________________
>>> Syncato-general mailing list
>>> Syncato-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>>> https://lists.sourceforge.net/lists/listinfo/syncato-general
>>>
>>>
>> Kimbro Staken
>> Software, Consulting and Writing http://www.xmldatabases.org/
>> Apache Xindice native XML database http://xml.apache.org/xindice
>> XML:DB Initiative http://www.xmldb.org
>>
>>
>>
>> -------------------------------------------------------
>> This SF.Net email sponsored by: ApacheCon 2003,
>> 16-19 November in Las Vegas. Learn firsthand the latest
>> developments in Apache, PHP, Perl, XML, Java, MySQL,
>> WebDAV, and more! http://www.apachecon.com/
>> _______________________________________________
>> Syncato-general mailing list
>> Syncato-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>> https://lists.sourceforge.net/lists/listinfo/syncato-general
>
>
>
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: ApacheCon 2003,
> 16-19 November in Las Vegas. Learn firsthand the latest
> developments in Apache, PHP, Perl, XML, Java, MySQL,
> WebDAV, and more! http://www.apachecon.com/
> _______________________________________________
> Syncato-general mailing list
> Syncato-general-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
> https://lists.sourceforge.net/lists/listinfo/syncato-general
>
>
Kimbro Staken
Software, Consulting and Writing http://www.xmldatabases.org/
Apache Xindice native XML database http://xml.apache.org/xindice
XML:DB Initiative http://www.xmldb.org



-------------------------------------------------------
This SF.Net email sponsored by: ApacheCon 2003,
16-19 November in Las Vegas. Learn firsthand the latest
developments in Apache, PHP, Perl, XML, Java, MySQL,
WebDAV, and more! http://www.apachecon.com/