New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Zypper Outgoing/Local Port Number #364
Comments
Sorry @radumamy, there's no support for specifying the local port. |
Thank you @mlandres. Could this be added as a feature in the future? Or is simply not possible? |
It depends on the backend and on what you want to achieve. The default 'multicurl' backend e.g. supports metalink. If you connect to download.opensuse.org to retrieve a repo, the server sends back a list or mirrors and the backend will use multiple connections to download different parts of the file from different mirrors in parallel. Local port could affect the initial connection, but not the parallel downloads from the mirrors. The old plain curl backend would use just a single connection per file, so defining a local port would indeed affect the whole file download. But in both cases it would fail if we try to download 2 files from the same repo in parallel. Actually we want to do even more in parallel, so we're reluctant to introduce something that would enforce us to serialize the request. |
@mlandres I don't know how things work in the background. I'm using Proot to chroot openSUSE into another existing environment. I have installed Plex inside openSUSE and it works fine, but I cannot get zypper to update. It appears that protected ports are an issue. I've thought if I can define the local port number in zypper or a range of high ports I could get it working. Would parallel downloads work if zypper would bind to a range of ports? Like if we could specify use ports above 30000? Thanks. |
Can't you update the chroot from the outside using I don't think we would implement such a kind of port management inside libzypps media backend. But if you like, you can mail me the |
Closing it. |
zypper.log |
@radumamy could you please run it as 'ZYPP_MEDIA_CURL_DEBUG=2 zypper ref'? So I can see more of libcurls actions. From the log so far I'd say it hangs when disconnecting, which would is pretty strange. If zypper hangs, please wait a few minutes before aborting it. |
zypper.log |
@radumamy would you do me one more favor? Please make sure you have |
zypper.strace.log.zip |
Still stumbling in the dark. It's obviously stuck in an endless loop and I suspect in libcurls curl_easy_cleanup. Maybe we can get a stacktrace out of libzypp:
If it did, please send the log (the stacktrace and 10 loglines preceding it will do). Thanks. |
Good Afternoon @mlandres . |
@radumamy the stacktrace confirms that it hangs in libcurl in a __poll below curl_easy_cleanup. Before I'm going to file a bugreport for libcurl, please try: Please run |
zypper.log |
@radumamy I created a bugreport for libcurl at bugzilla.suse.com. |
Good Afternoon,
Could you please advise if Zypper can use an user defined outgoing/local port number as opposed to default 80/443?
For example when using curl, I can specify a specific local port to connect to a remote host on port 80/443.
Thank you.
`localhost:~ # curl -v --local-port 40443 https://google.co.uk
The text was updated successfully, but these errors were encountered: