Skip to content

Commit d0a5c92

Browse files
committed
set socket pre-login
1 parent c31e331 commit d0a5c92

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

gnss_lib_py/parsers/ephemeris.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,13 +471,13 @@ def connect(self, url, secure):
471471
"""
472472
if secure:
473473
ftp = FTP_TLS(url)
474-
ftp.login()
475474
ftp.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
475+
ftp.login()
476476
ftp.prot_p()
477477
else:
478478
ftp = FTP(url)
479-
ftp.login()
480479
ftp.sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEPORT, 1)
480+
ftp.login()
481481
return ftp
482482

483483
@staticmethod

0 commit comments

Comments
 (0)