make-network-process timing out when connecting swank server

Mirko Vukovic <[email protected]> Sat, 18 Apr 2020 20:06:28 -0400
Newsgroups gmane.lisp.slime.devel
Message-ID <CAO73BADF-5HhxdsF5m-KK0YE2cNCQtDqeCThRV=p2QcORhzDHQ@mail.gmail.com>
--000000000000fc328f05a3998f7b
Content-Type: text/plain; charset="UTF-8"

Hello,

This is a follow-up to a thread that I started a few weeks back (What are
port requirements for remote lisp?).

I run Msys2's Emacs on a corporate laptop running windows 10, and I don't
have administrator privileges. I am using Sly and Spacemacs.

My problem is that sly-connect times out when trying to connect to the
swank server.

With Martin's help, I was able to establish a tunnel, start swank, and with
a telnet session on the laptop verify that I can send commands to swank
(see that other thread for details).

Nevertheless, sly-connect still fails. Stepping through the code, I came to
a call to make-network-process, which is a C function.

The error message is
"make client process failed", "Connection timed out", :name, "sly-4",
:buffer, nil, :host, "hal9000.us.tel.com", :service, 4005, :nowait, nil,
:tls-parameters, nil

I need help in figuring out the cause of the problem so that I can ask our
IT department for specific help.

My emacs can connect to the internet - for instance, org-ref
(orgmode+bibtex) can fetch journal article citations using DOI's.
So, why is make-network-process failing in this instance?

I am looking for some simple tests of make-network proces that can narrow
down the cause of failure when connecting to swank.

I was going to ask on the emacs mailing list, but I thought it best to
start here first.

Thank you,

Mirko

--000000000000fc328f05a3998f7b
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello,<div><br></div><div>This is a follow-up to a thread =
that I started a few weeks back (<span style=3D"color:rgb(32,33,36);font-fa=
mily:&quot;Google Sans&quot;,Roboto,RobotoDraft,Helvetica,Arial,sans-serif;=
font-variant-ligatures:no-contextual">What are port requirements for remote=
 lisp?).</span></div><div><span style=3D"color:rgb(32,33,36);font-family:&q=
uot;Google Sans&quot;,Roboto,RobotoDraft,Helvetica,Arial,sans-serif;font-va=
riant-ligatures:no-contextual"><br></span></div><div><span style=3D"color:r=
gb(32,33,36);font-family:&quot;Google Sans&quot;,Roboto,RobotoDraft,Helveti=
ca,Arial,sans-serif;font-variant-ligatures:no-contextual">I run Msys2&#39;s=
 Emacs on a corporate laptop running windows 10, and I don&#39;t have admin=
istrator privileges. I am using Sly and Spacemacs.</span></div><div><span s=
tyle=3D"color:rgb(32,33,36);font-family:&quot;Google Sans&quot;,Roboto,Robo=
toDraft,Helvetica,Arial,sans-serif;font-variant-ligatures:no-contextual"><b=
r></span></div><div><font color=3D"#202124"><span style=3D"font-variant-lig=
atures:no-contextual"><font face=3D"Google Sans, Roboto, RobotoDraft, Helve=
tica, Arial, sans-serif">My problem is that </font><font face=3D"monospace"=
>sly-connect</font><font face=3D"Google Sans, Roboto, RobotoDraft, Helvetic=
a, Arial, sans-serif"> times out when trying to connect to the swank server=
.</font></span></font></div><div><font color=3D"#202124" face=3D"Google San=
s, Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style=3D"font-v=
ariant-ligatures:no-contextual"><br></span></font></div><div><font color=3D=
"#202124" face=3D"Google Sans, Roboto, RobotoDraft, Helvetica, Arial, sans-=
serif"><span style=3D"font-variant-ligatures:no-contextual">With Martin&#39=
;s help, I was able to establish a tunnel, start swank, and with a telnet s=
ession on the laptop verify that I can send commands to swank (see that oth=
er thread for details).</span></font></div><div><font color=3D"#202124" fac=
e=3D"Google Sans, Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span =
style=3D"font-variant-ligatures:no-contextual"><br></span></font></div><div=
><font color=3D"#202124"><span style=3D"font-variant-ligatures:no-contextua=
l"><font face=3D"Google Sans, Roboto, RobotoDraft, Helvetica, Arial, sans-s=
erif">Nevertheless, </font><font face=3D"monospace">sly-connect</font><font=
 face=3D"Google Sans, Roboto, RobotoDraft, Helvetica, Arial, sans-serif"> s=
till fails. Stepping through the code, I came to a call=C2=A0to </font><fon=
t face=3D"monospace">make-network-process</font><font face=3D"Google Sans, =
Roboto, RobotoDraft, Helvetica, Arial, sans-serif">, which is a C function.=
</font></span></font></div><div><br></div><div><font color=3D"#202124" face=
=3D"Google Sans, Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span s=
tyle=3D"font-variant-ligatures:no-contextual">The error message=C2=A0is</sp=
an></font></div><div>&quot;make client process failed&quot;, &quot;Connecti=
on timed out&quot;, :name, &quot;sly-4&quot;, :buffer, nil, :host, &quot;<a=
 href=3D"http://hal9000.us.tel.com">hal9000.us.tel.com</a>&quot;, :service,=
 4005, :nowait, nil, :tls-parameters, nil<font color=3D"#202124" face=3D"Go=
ogle Sans, Roboto, RobotoDraft, Helvetica, Arial, sans-serif"><span style=
=3D"font-variant-ligatures:no-contextual"><br></span></font></div><div><br>=
</div><div><font color=3D"#202124" face=3D"Google Sans, Roboto, RobotoDraft=
, Helvetica, Arial, sans-serif"><span style=3D"font-variant-ligatures:no-co=
ntextual">I need help in figuring out the cause of the problem so that I ca=
n ask our IT department for specific help.</span></font></div><div><br></di=
v><div>My emacs can connect to the internet - for instance, org-ref (orgmod=
e+bibtex) can fetch journal article citations using DOI&#39;s.</div><div>So=
, why is <font face=3D"monospace">make-network-process</font> failing in th=
is instance?</div><div><br></div><div>I am looking for some simple tests of=
 <font face=3D"monospace">make-network</font><font face=3D"monospace"> proc=
es</font>=C2=A0that can narrow down the cause of failure when connecting to=
 swank.</div><div><br></div><div>I was going to ask on the emacs mailing li=
st, but I thought it best to start here first.</div><div><br></div><div>Tha=
nk you,</div><div><br></div><div>Mirko</div></div>

--000000000000fc328f05a3998f7b--