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

查看:19
本文介绍了哪个协议?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:// 有一个严重 的开销,尤其是在处理数千个小文件时.我在一个有大约 50,000 个图标的网站上使用了 svn,所有图标都保存在 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天全站免登陆