RE: .Net connector IsConnected does not seem to work

[email protected] Sun, 16 Jan 2005 10:38:43 -0800
Newsgroups gmane.comp.web.mod-pubsub.devel
Message-ID <CA4D186E24985848974590F39B79777C041006@w2k3-exchange.home.chhuoii.com>
This is a multi-part message in MIME format.

------_=_NextPart_001_01C4FBFA.CCE3CDF6
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi Rohit,
=20
Sorry, but I'm going to be busy for this week, so I won't get a chance
to look at it. But here are some tips that will get you going:
=20
The reason IsConneced and EnsureConnected always return true is that
ultimately the connector's members delegate to the transport. Since it
is always possible to create a transport in your scenario, it will
always return true. You may want to debug into Transport.cpp,
Transport::Connect() and see that all it is doing is setting up the HTTP
transport.
=20
I never tried subscribing to the same kn_id multiple times. You may want
to debug into Connector::Subscribe to see where it locks up.
=20
Tommy


________________________________

From: [email protected]
[mailto:[email protected]]=20
Sent: Friday, January 14, 2005 4:01 AM
To: Pubsub (E-mail)
Subject: [Mod-pubsub-developer] .Net connector IsConnected does not seem
to work



Hi All,=20
        The IsConnected and EnsureConnected calls  in the .Net connector
always return true as does the Open call, even if the pubsub server is
not running. This is true even after publish/ subscribe have been
invoked on this connection. Is this a bug or are we supposed to do
something else ?

        The other problem is that calling Subscribe, with the same kn_id
as was used in an earlier successful Subscribe call, does not return.
The request status handler also isn't invoked and as far as I can make
out the call doesn't reach the pubsub server as well.

Regards,=20
Rohit Khetan.=20

This message is free from Virus - IMSS
=09

------_=_NextPart_001_01C4FBFA.CCE3CDF6
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>.Net connector IsConnected does not seem to =
work</TITLE>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Dus-ascii">
<META content=3D"MSHTML 6.00.2900.2523" name=3DGENERATOR></HEAD>
<BODY>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D312563318-16012005><FONT =
color=3D#0000ff=20
size=3D2>Hi Rohit,</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D312563318-16012005><FONT =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D312563318-16012005><FONT =
color=3D#0000ff=20
size=3D2>Sorry, but I'm going to be busy for this week, so I won't get a =
chance to=20
look at it. But here are some tips that will get you =
going:</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D312563318-16012005><FONT =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D312563318-16012005><FONT =
color=3D#0000ff=20
size=3D2>The reason IsConneced and EnsureConnected always return true is =
that=20
ultimately the connector's members delegate to the transport. Since it =
is always=20
possible to create a transport in your scenario, it will always return =
true. You=20
may want to debug into Transport.cpp, Transport::Connect() and see that =
all it=20
is doing is setting up the HTTP transport.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D312563318-16012005><FONT =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D312563318-16012005><FONT =
color=3D#0000ff=20
size=3D2>I never tried subscribing to the same kn_id multiple times. You =
may want=20
to debug into Connector::Subscribe to see where it locks =
up.</FONT></SPAN></DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D312563318-16012005><FONT =
color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV dir=3Dltr align=3Dleft><SPAN class=3D312563318-16012005><FONT =
color=3D#0000ff=20
size=3D2>Tommy</FONT></SPAN></DIV><FONT color=3D#0000ff =
size=3D2></FONT><FONT=20
color=3D#0000ff size=3D2></FONT><FONT color=3D#0000ff =
size=3D2></FONT><FONT=20
color=3D#0000ff size=3D2></FONT><BR>
<DIV class=3DOutlookMessageHeader lang=3Den-us dir=3Dltr align=3Dleft>
<HR tabIndex=3D-1>
<FONT face=3DTahoma size=3D2><B>From:</B>=20
[email protected]=20
[mailto:[email protected]] =
<BR><B>Sent:</B>=20
Friday, January 14, 2005 4:01 AM<BR><B>To:</B> Pubsub=20
(E-mail)<BR><B>Subject:</B> [Mod-pubsub-developer] .Net connector =
IsConnected=20
does not seem to work<BR></FONT><BR></DIV>
<DIV></DIV>
<P><FONT face=3DArial size=3D2>Hi All,</FONT>=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial =
size=3D2>The=20
IsConnected and EnsureConnected calls&nbsp; in the .Net connector always =
return=20
true as does the Open call, even if the pubsub server is not running. =
This is=20
true even after publish/ subscribe have been invoked on this connection. =
Is this=20
a bug or are we supposed to do something else ?</FONT></P>
<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT face=3DArial =
size=3D2>The other=20
problem is that calling Subscribe, with the same kn_id as was used in an =
earlier=20
successful Subscribe call, does not return. The request status handler =
also=20
isn't invoked and as far as I can make out the call doesn't reach the =
pubsub=20
server as well.</FONT></P>
<P><FONT face=3DArial size=3D2>Regards,</FONT> <BR><FONT face=3DArial =
size=3D2>Rohit=20
Khetan.</FONT> </P>
<TABLE>
  <TBODY>
  <TR>
    <TD bgColor=3D#ffffff><FONT color=3D#000000>This message is free =
from Virus -=20
      IMSS<BR></FONT></TD></TR></TBODY></TABLE></BODY></HTML>

------_=_NextPart_001_01C4FBFA.CCE3CDF6--


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt