tsp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tsp-devel] EIF TSP: tsp_consumer_request_sample_destroy


From: Stephane GALLES
Subject: Re: [Tsp-devel] EIF TSP: tsp_consumer_request_sample_destroy
Date: Wed, 28 Feb 2007 21:03:13 +0100
User-agent: Thunderbird 1.5.0.9 (X11/20070104)

It reminds me of something, with an other use case,
while testing the Ruby consumer a few days ago, with
the tsp_stub_server.

At the end of my Ruby consumer example I used to do :

consumer.request_sample_destroy
consumer.request_close

But I had to comment out the last line (request_close), because,
sometimes, during the request_close, the tsp_stub_server starts
throwing ERROR traces in the terminal, saying something like
"I can't find the session you're trying to close !" and...coredump !

Now, I didn't investigate at the time, coz I really didn't think
that it could be in the core code of the provider (I really thought
it could be my Ruby lib, or maybe the xmlrpc layer).

I'll try to reproduce this behaviour. It really looks like
->sometimes<-, the request_sample_destroy get ride of the session
before the request_close. Just an hypothesis, but it may have
something to do with the session garbage collector when a socket
is broken (I don't even know if this part of the code still exists though).

Stephane.


Eric Noulard wrote:
> 2007/2/28, ZXOPESOGE001, Ext <address@hidden>:
>> My TSP problem:
>> When i tell the provider to stop sending sample on calling
>> tsp_consumer_request_sample_destroy, i have the following stracedebug():
>>
>> /tsp_stream_sender.c##TSP_streamer_sender_thread_sender##200: End of
>> fifo thread stream sender
>> /tsp_session.c##TSP_get_session##117: Channel_id = <0> is session Idx <0>
>>  /tsp_session.c##TSP_get_session##117: Channel_id = <0> is session Idx
>> <0>
>> /tsp_session.c##TSP_get_session##117: Channel_id = <0> is session Idx <0>
>> /tsp_session.c##TSP_session_close_session##164: Request Closing
>> session channel_id = 0
>> /tsp_session.c##TSP_get_session##117: Channel_id = <0> is session Idx <0>
>>  /tsp_session.c##TSP_session_close_session##173: X_session_nb now = 0.
>> In this way, it's impossible to ask a new cycle of sampling  because
>> the session is closed.
>> What kind of tsp requests can I use to stop a sampling acquisition
>> cyle without close the connection and then restart a new acquisition?
> 
> You should use tsp_consumer_request_sample_destroy :))
> This looks like a bug in the session state handling on the provider side
> :((
> 
> You should open a bug on the tracker:
> https://savannah.nongnu.org/bugs/?group=tsp
[...]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]