哪个协议? svn://或http(s)://? [英] Which protocol? svn:// or http(s)://?

查看:186
本文介绍了哪个协议? svn://或http(s)://?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

SVN的网络访问有四种常用协议。

There are four common protocols for network access of SVN.

svn://repos
svn+ssh://repos
https://repos
http://repos

维基百科页面没有说明四种不同协议的差异。我总是喜欢 svn:// ,因为它是最容易设置的,但有什么不同,哪一个是更好?

The Wikipedia page doesn't say much about the differences of the four different protocols. I've always preferred svn://, because it is the easiest to set up, but what is the difference and which one is "better"?

推荐答案

http:// 严重的开销,尤其是在处理数以千计的小文件时。我使用svn作为一个拥有大约50,000个图标的网站,所有这些都保存在SVN中。使用HTTP,大约需要20分钟才能结账。一旦我切换到 svn:// ,花了不到一分钟。这是因为对于HTTP,每个文件只有一个新的HTTP请求。

http:// has a serious overhead, especially when dealing with thousands of small files. I used svn for a website that had around 50,000 icons, all saved in SVN. With HTTP, it took around 20 minutes to checkout. Once I switched to svn://, it took less than a minute. This is because with HTTP it's one new HTTP request per file.

http:// 但是有以下大的优点:它通常通过防火墙。例如,现在我切换到 svn:// 由于防火墙,我无法再从我的大学访问我的存储库。

http:// however has the following big advantage: it usually goes through firewalls. For example, now that I switched to svn:// I can no longer access my repository from my university because of their firewall.

关于使用SSL / TLS与否之间的区别,很明显:数据是加密的;但是设置起来比较困难。

Regarding the difference between using SSL/TLS or not, well, it's obvious: data is encrypted; however it's more difficult to set up.

这篇关于哪个协议? svn://或http(s)://?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆