[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[dsdp-tm-dev] Re: dsdp-tm-dev Digest, Vol 50, Issue 2
|
Hi Martin,
Thanks for your reply.
I can SSH to remote server by using RSE and even by command line.
In case of command line, even if I leave my machine idle for 3-4 hours, my connection remains as it is.
But in case of RSE, even if I leave my machine idle for 5 mins, whatever connections I've made, I need to reconnect to all of them.
To make connection I'm using following code
private void connect(final ISubSystem subsys, final IProgressMonitor monitor) {
// monitor.beginTask("Connecting", 10);
if (!subsys.isConnected()) {
final Exception[] exception = new Exception[1];
exception[0] = null;
Display.getDefault().syncExec(new Runnable() {
public void run() {
try {
((SubSystem) subsys).promptForPassword();
} catch (Exception e) {
exception[0] = e;
}
}
});
try {
subsys.getConnectorService().connect(monitor);
} catch (Exception e) {
e.printStackTrace();
}
if (subsys.isConnected()) {
// Notify connect status change
Display.getDefault().asyncExec(new Runnable() {
public void run() {
IPropertySet ps[] = subsys.getConnectorService().getPropertySets();
for(int i=0 ;i<ps.length;i++) System.out.println(i+1 + "\tName" + ps[i].getName());
//ps[0].
RSECorePlugin.getTheSystemRegistry()
.connectedStatusChange(subsys, true, false);
}
});
}
}
// monitor.done();
}
With the above code I can work well if I'm not leaving Eclipse instance idle even for 2 mins. But otherwise I need to reconnect.
Please suggest if I'm going somewhere wrong or if I need to do anything different.
Stuck badly.
Thanks a lot in advance,
Vrushali.
--- On Thu, 9/17/09, dsdp-tm-dev-request@xxxxxxxxxxx <dsdp-tm-dev-request@xxxxxxxxxxx> wrote:
> From: dsdp-tm-dev-request@xxxxxxxxxxx <dsdp-tm-dev-request@xxxxxxxxxxx>
> Subject: dsdp-tm-dev Digest, Vol 50, Issue 2
> To: dsdp-tm-dev@xxxxxxxxxxx
> Date: Thursday, September 17, 2009, 3:50 PM
> Send dsdp-tm-dev mailing list
> submissions to
> dsdp-tm-dev@xxxxxxxxxxx
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> or, via email, send a message with subject or body 'help'
> to
> dsdp-tm-dev-request@xxxxxxxxxxx
>
> You can reach the person managing the list at
> dsdp-tm-dev-owner@xxxxxxxxxxx
>
> When replying, please edit your Subject line so it is more
> specific
> than "Re: Contents of dsdp-tm-dev digest..."
>
>
> Today's Topics:
>
> 1. Re: dsdp-tm-dev Digest, Vol 50, Issue
> 1 (vrushali babar)
> 2. Re: Connection timed out
> error...RSEG1058 (vrushali babar)
> 3. RE: Re: Connection timed out
> error...RSEG1058 (Oberhuber, Martin)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Wed, 16 Sep 2009 21:29:22 -0700 (PDT)
> From: vrushali babar <vrush_com@xxxxxxxxx>
> Subject: [dsdp-tm-dev] Re: dsdp-tm-dev Digest, Vol 50,
> Issue 1
> To: dsdp-tm-dev@xxxxxxxxxxx
> Message-ID: <327503.2668.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=iso-8859-1
>
>
> Hi David,
>
> I'm using SSH option to make connection. is there any
> method by which i can extend the connection timeout range?
>
> Thanks,
> Vrushali.
>
> --- On Wed, 9/16/09, dsdp-tm-dev-request@xxxxxxxxxxx
> <dsdp-tm-dev-request@xxxxxxxxxxx>
> wrote:
>
> > From: dsdp-tm-dev-request@xxxxxxxxxxx
> <dsdp-tm-dev-request@xxxxxxxxxxx>
> > Subject: dsdp-tm-dev Digest, Vol 50, Issue 1
> > To: dsdp-tm-dev@xxxxxxxxxxx
> > Date: Wednesday, September 16, 2009, 9:30 PM
> > Send dsdp-tm-dev mailing list
> > submissions to
> > dsdp-tm-dev@xxxxxxxxxxx
> >
> > To subscribe or unsubscribe via the World Wide Web,
> visit
> > https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> > or, via email, send a message with subject or body
> 'help'
> > to
> > dsdp-tm-dev-request@xxxxxxxxxxx
> >
> > You can reach the person managing the list at
> > dsdp-tm-dev-owner@xxxxxxxxxxx
> >
> > When replying, please edit your Subject line so it is
> more
> > specific
> > than "Re: Contents of dsdp-tm-dev digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Connection timed out error...RSEG1058
> > (vrushali babar)
> > 2. Re: Connection timed out
> > error...RSEG1058 (David McKnight)
> >
> >
> >
> ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 15 Sep 2009 22:21:40 -0700 (PDT)
> > From: vrushali babar <vrush_com@xxxxxxxxx>
> > Subject: [dsdp-tm-dev] Connection timed out
> > error...RSEG1058
> > To: dsdp-tm <dsdp-tm-dev@xxxxxxxxxxx>
> > Message-ID: <749327.98085.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> > Content-Type: text/plain; charset=us-ascii
> >
> > Hi,
> >
> > I'm using RSE-SDK-3.1 and Eclipse 3.5. I could make
> > connection to remote server programmatically but
> suffering
> > from connection timed out error RSEG1058, saying
> 'Connect to
> > Remote_server_name was cancelled'.
> >
> > I tried setting Connection timeout using Preference
> page
> > (Windows -> Preferences -> Remote Systems ->
> Data
> > Store) by setting the value to 64800000 but still
> doesn't
> > seemed to be solving my problem.
> > Even after making the change in connection timeout
> range,
> > i'm getting disconnected with the very short period
> of
> > time.
> >
> > So I am in need of some way to set connection timeout
> when
> > I'm connecting to remote server. Please provide
> pointers and
> > even anyone could tell me what is the default
> timeout?
> >
> > Thanks in advance,
> > Vrushali.
> >
> >
> >
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Wed, 16 Sep 2009 06:29:23 -0400
> > From: David McKnight <dmcknigh@xxxxxxxxxx>
> > Subject: Re: [dsdp-tm-dev] Connection timed out
> > error...RSEG1058
> > To: Target Management developer discussions <dsdp-tm-dev@xxxxxxxxxxx>
> > Cc: dsdp-tm <dsdp-tm-dev@xxxxxxxxxxx>,
> > dsdp-tm-dev-bounces@xxxxxxxxxxx
> > Message-ID:
> > <OF8AD2D2CB.5B377555-ON85257633.00398581-85257633.00399F04@xxxxxxxxxx>
> > Content-Type: text/plain; charset="us-ascii"
> >
> > Skipped content of type
> multipart/alternative--------------
> > next part --------------
> > A non-text attachment was scrubbed...
> > Name: graycol.gif
> > Type: image/gif
> > Size: 105 bytes
> > Desc: not available
> > Url : https://dev.eclipse.org/mailman/private/dsdp-tm-dev/attachments/20090916/602c221b/graycol.gif
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: pic26832.gif
> > Type: image/gif
> > Size: 1255 bytes
> > Desc: not available
> > Url : https://dev.eclipse.org/mailman/private/dsdp-tm-dev/attachments/20090916/602c221b/pic26832.gif
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: ecblank.gif
> > Type: image/gif
> > Size: 45 bytes
> > Desc: not available
> > Url : https://dev.eclipse.org/mailman/private/dsdp-tm-dev/attachments/20090916/602c221b/ecblank.gif
> >
> > ------------------------------
> >
> > _______________________________________________
> > dsdp-tm-dev mailing list
> > dsdp-tm-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> >
> >
> > End of dsdp-tm-dev Digest, Vol 50, Issue 1
> > ******************************************
> >
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Thu, 17 Sep 2009 00:09:05 -0700 (PDT)
> From: vrushali babar <vrush_com@xxxxxxxxx>
> Subject: [dsdp-tm-dev] Re: Connection timed out
> error...RSEG1058
> To: dsdp-tm-dev@xxxxxxxxxxx
> Message-ID: <113449.25932.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset=iso-8859-1
>
>
> Hi David,
>
> I'm trying to SSH connection. Looked for any manual setting
> available to set connection time out range but didn't find
> anything (Whatever I got was for Dstore).
> While searching, i came across the following bug id
>
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=219936
>
> so looks like there is some solution available.
> Till now i have finished following
> - getting instance if IHost
> - getting related ISubsystem
> - Getting credentials if not yet provided and connecting to
> remote server
>
> but stuck at connection time out error.
> Can you suggest if there is any method to set connection
> time out?
> Help would be really grateful.
>
> Thanks a ton,
> Vrushali.
>
>
> --- On Wed, 9/16/09, dsdp-tm-dev-request@xxxxxxxxxxx
> <dsdp-tm-dev-request@xxxxxxxxxxx>
> wrote:
>
> > From: dsdp-tm-dev-request@xxxxxxxxxxx
> <dsdp-tm-dev-request@xxxxxxxxxxx>
> > Subject: dsdp-tm-dev Digest, Vol 50, Issue 1
> > To: dsdp-tm-dev@xxxxxxxxxxx
> > Date: Wednesday, September 16, 2009, 9:30 PM
> > Send dsdp-tm-dev mailing list
> > submissions to
> > dsdp-tm-dev@xxxxxxxxxxx
> >
> > To subscribe or unsubscribe via the World Wide Web,
> visit
> > https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> > or, via email, send a message with subject or body
> 'help'
> > to
> > dsdp-tm-dev-request@xxxxxxxxxxx
> >
> > You can reach the person managing the list at
> > dsdp-tm-dev-owner@xxxxxxxxxxx
> >
> > When replying, please edit your Subject line so it is
> more
> > specific
> > than "Re: Contents of dsdp-tm-dev digest..."
> >
> >
> > Today's Topics:
> >
> > 1. Connection timed out error...RSEG1058
> > (vrushali babar)
> > 2. Re: Connection timed out
> > error...RSEG1058 (David McKnight)
> >
> >
> >
> ----------------------------------------------------------------------
> >
> > Message: 1
> > Date: Tue, 15 Sep 2009 22:21:40 -0700 (PDT)
> > From: vrushali babar <vrush_com@xxxxxxxxx>
> > Subject: [dsdp-tm-dev] Connection timed out
> > error...RSEG1058
> > To: dsdp-tm <dsdp-tm-dev@xxxxxxxxxxx>
> > Message-ID: <749327.98085.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> > Content-Type: text/plain; charset=us-ascii
> >
> > Hi,
> >
> > I'm using RSE-SDK-3.1 and Eclipse 3.5. I could make
> > connection to remote server programmatically but
> suffering
> > from connection timed out error RSEG1058, saying
> 'Connect to
> > Remote_server_name was cancelled'.
> >
> > I tried setting Connection timeout using Preference
> page
> > (Windows -> Preferences -> Remote Systems ->
> Data
> > Store) by setting the value to 64800000 but still
> doesn't
> > seemed to be solving my problem.
> > Even after making the change in connection timeout
> range,
> > i'm getting disconnected with the very short period
> of
> > time.
> >
> > So I am in need of some way to set connection timeout
> when
> > I'm connecting to remote server. Please provide
> pointers and
> > even anyone could tell me what is the default
> timeout?
> >
> > Thanks in advance,
> > Vrushali.
> >
> >
> >
> >
> >
> > ------------------------------
> >
> > Message: 2
> > Date: Wed, 16 Sep 2009 06:29:23 -0400
> > From: David McKnight <dmcknigh@xxxxxxxxxx>
> > Subject: Re: [dsdp-tm-dev] Connection timed out
> > error...RSEG1058
> > To: Target Management developer discussions <dsdp-tm-dev@xxxxxxxxxxx>
> > Cc: dsdp-tm <dsdp-tm-dev@xxxxxxxxxxx>,
> > dsdp-tm-dev-bounces@xxxxxxxxxxx
> > Message-ID:
> > <OF8AD2D2CB.5B377555-ON85257633.00398581-85257633.00399F04@xxxxxxxxxx>
> > Content-Type: text/plain; charset="us-ascii"
> >
> > Skipped content of type
> multipart/alternative--------------
> > next part --------------
> > A non-text attachment was scrubbed...
> > Name: graycol.gif
> > Type: image/gif
> > Size: 105 bytes
> > Desc: not available
> > Url : https://dev.eclipse.org/mailman/private/dsdp-tm-dev/attachments/20090916/602c221b/graycol.gif
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: pic26832.gif
> > Type: image/gif
> > Size: 1255 bytes
> > Desc: not available
> > Url : https://dev.eclipse.org/mailman/private/dsdp-tm-dev/attachments/20090916/602c221b/pic26832.gif
> > -------------- next part --------------
> > A non-text attachment was scrubbed...
> > Name: ecblank.gif
> > Type: image/gif
> > Size: 45 bytes
> > Desc: not available
> > Url : https://dev.eclipse.org/mailman/private/dsdp-tm-dev/attachments/20090916/602c221b/ecblank.gif
> >
> > ------------------------------
> >
> > _______________________________________________
> > dsdp-tm-dev mailing list
> > dsdp-tm-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> >
> >
> > End of dsdp-tm-dev Digest, Vol 50, Issue 1
> > ******************************************
> >
>
>
>
>
>
> ------------------------------
>
> Message: 3
> Date: Thu, 17 Sep 2009 12:19:41 +0200
> From: "Oberhuber, Martin" <Martin.Oberhuber@xxxxxxxxxxxxx>
> Subject: RE: [dsdp-tm-dev] Re: Connection timed out
> error...RSEG1058
> To: "Target Management developer discussions"
> <dsdp-tm-dev@xxxxxxxxxxx>
> Message-ID:
> <460801A4097E3D4CA04CC64EE64858480ADD8C80@xxxxxxxxxxxxxxxxxxxxxxxxxx>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Vrushali,
>
> I doubt that you really have a timeout problem.
>
> Can you connect your host with some commandline tool
> outside
> Eclipse? Is sftp-server available on your remote host?
>
> I suggest that you try the TM-Terminal to connect to your
> host.
> This just needs a shell and no sftp-server -- and allows
> setting
> a timeout value directly in its UI.
>
> RSE also allows setting a timeout value in the connection
> wizard
> or connection properties, see attached.
>
> Cheers,
> --
> Martin Oberhuber, Senior Member of Technical Staff, Wind
> River
> Target Management Project Lead, DSDP PMC Member
> http://www.eclipse.org/dsdp/tm
>
>
>
> > -----Original Message-----
> > From: dsdp-tm-dev-bounces@xxxxxxxxxxx
>
> > [mailto:dsdp-tm-dev-bounces@xxxxxxxxxxx]
> On Behalf Of vrushali babar
> > Sent: Thursday, September 17, 2009 9:09 AM
> > To: dsdp-tm-dev@xxxxxxxxxxx
> > Subject: [dsdp-tm-dev] Re: Connection timed out
> error...RSEG1058
> >
> >
> > Hi David,
> >
> > I'm trying to SSH connection. Looked for any manual
> setting
> > available to set connection time out range but didn't
> find
> > anything (Whatever I got was for Dstore).
> > While searching, i came across the following bug id
> >
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=219936
> >
> > so looks like there is some solution available.
> > Till now i have finished following
> > - getting instance if IHost
> > - getting related ISubsystem
> > - Getting credentials if not yet provided and
> connecting to
> > remote server
> >
> > but stuck at connection time out error.
> > Can you suggest if there is any method to set
> connection time out?
> > Help would be really grateful.
> >
> > Thanks a ton,
> > Vrushali.
> >
> >
> > --- On Wed, 9/16/09, dsdp-tm-dev-request@xxxxxxxxxxx
>
> > <dsdp-tm-dev-request@xxxxxxxxxxx>
> wrote:
> >
> > > From: dsdp-tm-dev-request@xxxxxxxxxxx
>
> > <dsdp-tm-dev-request@xxxxxxxxxxx>
> > > Subject: dsdp-tm-dev Digest, Vol 50, Issue 1
> > > To: dsdp-tm-dev@xxxxxxxxxxx
> > > Date: Wednesday, September 16, 2009, 9:30 PM
> > > Send dsdp-tm-dev mailing list
> > > submissions to
> > > dsdp-tm-dev@xxxxxxxxxxx
> > >
> > > To subscribe or unsubscribe via the World Wide
> Web, visit
> > > https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> > > or, via email, send a message with subject or
> body 'help'
> > > to
> > > dsdp-tm-dev-request@xxxxxxxxxxx
> > >
> > > You can reach the person managing the list at
> > > dsdp-tm-dev-owner@xxxxxxxxxxx
> > >
> > > When replying, please edit your Subject line so
> it is more
> > > specific
> > > than "Re: Contents of dsdp-tm-dev digest..."
> > >
> > >
> > > Today's Topics:
> > >
> > > 1. Connection timed out error...RSEG1058
> > > (vrushali babar)
> > > 2. Re: Connection timed out
> > > error...RSEG1058 (David McKnight)
> > >
> > >
> > >
> >
> ----------------------------------------------------------------------
> > >
> > > Message: 1
> > > Date: Tue, 15 Sep 2009 22:21:40 -0700 (PDT)
> > > From: vrushali babar <vrush_com@xxxxxxxxx>
> > > Subject: [dsdp-tm-dev] Connection timed out
> > > error...RSEG1058
> > > To: dsdp-tm <dsdp-tm-dev@xxxxxxxxxxx>
> > > Message-ID: <749327.98085.qm@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
> > > Content-Type: text/plain; charset=us-ascii
> > >
> > > Hi,
> > >
> > > I'm using RSE-SDK-3.1 and Eclipse 3.5. I could
> make
> > > connection to remote server programmatically but
> suffering
> > > from connection timed out error RSEG1058, saying
> 'Connect to
> > > Remote_server_name was cancelled'.
> > >
> > > I tried setting Connection timeout using
> Preference page
> > > (Windows -> Preferences -> Remote Systems
> -> Data
> > > Store) by setting the value to 64800000 but still
> doesn't
> > > seemed to be solving my problem.
> > > Even after making the change in connection
> timeout range,
> > > i'm getting disconnected with the very short
> period of
> > > time.
> > >
> > > So I am in need of some way to set connection
> timeout when
> > > I'm connecting to remote server. Please provide
> pointers and
> > > even anyone could tell me what is the default
> timeout?
> > >
> > > Thanks in advance,
> > > Vrushali.
> > >
> > >
> > >
> > >
> > >
> > > ------------------------------
> > >
> > > Message: 2
> > > Date: Wed, 16 Sep 2009 06:29:23 -0400
> > > From: David McKnight <dmcknigh@xxxxxxxxxx>
> > > Subject: Re: [dsdp-tm-dev] Connection timed out
> > > error...RSEG1058
> > > To: Target Management developer discussions
> > <dsdp-tm-dev@xxxxxxxxxxx>
> > > Cc: dsdp-tm <dsdp-tm-dev@xxxxxxxxxxx>,
> > > dsdp-tm-dev-bounces@xxxxxxxxxxx
> > > Message-ID:
> > >
> > <OF8AD2D2CB.5B377555-ON85257633.00398581-85257633.00399F04@xxxxxxxxxx>
> > > Content-Type: text/plain; charset="us-ascii"
> > >
> > > Skipped content of type
> multipart/alternative--------------
> > > next part --------------
> > > A non-text attachment was scrubbed...
> > > Name: graycol.gif
> > > Type: image/gif
> > > Size: 105 bytes
> > > Desc: not available
> > > Url :
> > https://dev.eclipse.org/mailman/private/dsdp-tm-dev/attachment
> > s/20090916/602c221b/graycol.gif
> > > -------------- next part --------------
> > > A non-text attachment was scrubbed...
> > > Name: pic26832.gif
> > > Type: image/gif
> > > Size: 1255 bytes
> > > Desc: not available
> > > Url :
> > https://dev.eclipse.org/mailman/private/dsdp-tm-dev/attachment
> > s/20090916/602c221b/pic26832.gif
> > > -------------- next part --------------
> > > A non-text attachment was scrubbed...
> > > Name: ecblank.gif
> > > Type: image/gif
> > > Size: 45 bytes
> > > Desc: not available
> > > Url :
> > https://dev.eclipse.org/mailman/private/dsdp-tm-dev/attachment
> > s/20090916/602c221b/ecblank.gif
> > >
> > > ------------------------------
> > >
> > > _______________________________________________
> > > dsdp-tm-dev mailing list
> > > dsdp-tm-dev@xxxxxxxxxxx
> > > https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> > >
> > >
> > > End of dsdp-tm-dev Digest, Vol 50, Issue 1
> > > ******************************************
> > >
> >
> >
> >
> > _______________________________________________
> > dsdp-tm-dev mailing list
> > dsdp-tm-dev@xxxxxxxxxxx
> > https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
> >
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: sshTimeout.gif
> Type: image/gif
> Size: 13796 bytes
> Desc: sshTimeout.gif
> Url : https://dev.eclipse.org/mailman/private/dsdp-tm-dev/attachments/20090917/6db77751/sshTimeout.gif
>
> ------------------------------
>
> _______________________________________________
> dsdp-tm-dev mailing list
> dsdp-tm-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/dsdp-tm-dev
>
>
> End of dsdp-tm-dev Digest, Vol 50, Issue 2
> ******************************************
>