<div dir="ltr">Hi Ingela,<div><br></div><div>the server I see this behaviour on is: Pure-FTPd - <a href="http://pureftpd.org/">http://pureftpd.org/</a> </div><div><br></div><div>If I can find the time, I will try to raise a report. Might take a bit. Also, the ftp server is not mine, but a live commercial installation. So I'm not sure about the parameters of their installation or if I can ever find out.</div><div><br></div><div>Cheer,</div><div>Robby</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 12 Jul 2019 at 11:52, Ingela Andin <<a href="mailto:ingela.andin@gmail.com">ingela.andin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Robert!</div><div><br></div><div>Can you provide a reliable way to reproduce the problem it will help getting it fixed. Have you tried to run our ftp test suite? <br></div><div>It passes in our tests runs.  The possible bug might be server dependent.<br></div><div><br></div><div>Could you report it at <a href="https://bugs.erlang.org/" target="_blank">https://bugs.erlang.org/</a></div><div><br></div><div>Regards Ingela Erlang/OTP Team - Ericsson AB<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den fre 12 juli 2019 kl 10:43 skrev Robert Raschke <<a href="mailto:rtrlists@googlemail.com" target="_blank">rtrlists@googlemail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Ingela,<div><br></div><div>I just had a case of ftp:recv_bin(FTP, "filename") repeatedly returned only 'ok'.</div><div>That is, my hoped for workaround of simply retrying the operation fails.</div><div><br></div><div>This makes version 1.0.2 of the ftp lib unusable, I'm afraid.</div><div>I will have to revert to an earlier version.</div><div><br></div><div>Cheers,</div><div>Robby</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 9 Jul 2019 at 20:49, Ingela Andin <<a href="mailto:ingela.andin@gmail.com" target="_blank">ingela.andin@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Robert!</div><div><br></div><div>Well it somewhat unexpected that it returns an undocumented value. It might be that the correction made to fix a timing bug in the FTP application, that<br></div><div>was exposed by TLS optimizations when running FTP over TLS, uncovered some other timing bug. Most of the FTP code is very old and I wished for the gen_statem behavior while fixing the bug I just mentioned, so I would not be very surprised if there are more race conditions in that code. </div><div><br></div><div>Regards Ingela Erlang/OTP team </div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den mån 8 juli 2019 kl 18:11 skrev Robert Raschke <<a href="mailto:rtrlists@googlemail.com" target="_blank">rtrlists@googlemail.com</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div><br></div><div>I have code that matches on {ok, Result} and {error, Reason} tuples coming from calls to ftp:ls/2 and ftp:recv_bin/2 (on 21.1, ftp-1.0.1) and upgrading to 21.3 (ftp-1.0.2) sometimes returns a simple ok on those calls. This is surprising.</div><div><br></div><div>





<p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures">15> f().</span></p>
<p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures">ok</span></p>
<p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures">16> {ok, FTP} = ftp:open("somesite"), ok = ftp:user(FTP, "someuser", "somepwd"), timer:sleep(100), R = ftp:ls(FTP, "/somefolder/*"), ftp:close(FTP), R.</span></p>
<p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures">{ok,"-rw-r--r--<span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space">    </span>1 2001 <span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space">      </span>2001 <span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space">          </span>174993 Jul<span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space">  </span>8 17:16 ..."}</span></p>
<p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures">17> f().</span></p>
<p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures">ok</span></p>
<p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures">18> {ok, FTP} = ftp:open("somesite"), ok = ftp:user(FTP, "someuser", "somepwd"), timer:sleep(100), R = ftp:ls(FTP, "/somefolder/*"), ftp:close(FTP), R.</span></p>
<p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures">ok</span></p>
<p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures">19><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space"> </span></span></p><p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;font-size:11px;line-height:normal;font-family:Menlo;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space"><br></span></span></p><p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space"><font face="arial, sans-serif">What might be the reason for this? And is this expected?</font></span></span></p><p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space"><font face="arial, sans-serif"><br></font></span></span></p><p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space"><font face="arial, sans-serif">Cheers,</font></span></span></p><p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space"><font face="arial, sans-serif">Robby</font></span></span></p><p class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-p1" style="margin:0px;font-variant-numeric:normal;font-variant-east-asian:normal;font-stretch:normal;line-height:normal;color:rgb(0,0,0)"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-s1" style="font-variant-ligatures:no-common-ligatures"><span class="gmail-m_1154858478501999757gmail-m_-1212022503995923102gmail-m_-7543015749292833793m_-2440304017121086459gmail-m_-7509775641434017626gmail-Apple-converted-space"><font face="arial, sans-serif"><br></font></span></span></p></div></div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div></div>
</blockquote></div>
</blockquote></div></div>
</blockquote></div>