什么条件下IIS与WCF服务可以共享一个端口?
2011-10-08 11:52
387 查看
由于HPC项目原因,需要windows服务共享一个绑定的443端口,作为备忘以供参考
我实验了不同应用下的端口共享情况,我的实验为:
IIS 部署hpcportal
WCF服务Proxy和Proxy1
1 port 443 部署 IIS (https://192.168.50.5/hpcporta) 和Proxy(https://192.168.50.5/WindowsHpc/RD-LIUYY1/jobs) 和Proxy1(https://192.168.50.5/WindowsHpc1/RD-LIUYY1/jobs),
结果正常访问,互不影响
2 port 443 部署Proxy(https://192.168.50.5/WindowsHpc/RD-LIUYY1/jobs) 和Proxy1(https://192.168.50.5/WindowsHpc/RD-LIUYY1/jobs), Proxy1无法共享端口。
疑问:
一个process只能listento 一个port,为什么可以与IIS共享?
原因分析:
由于WCF和IIS都是基于The HTTP.SYS model,只要保证域名后的相对路径(/hpcporta和/WindowsHpc)不同就不会影响,因此1 work well, 2 failed
(出处:http://msdn.microsoft.com/en-us/library/ms734772.aspx)
The ability to share ports across multiple HTTP applications has long been a feature of Internet Information Services (IIS). However, it was only with the introduction of HTTP.SYS (the kernel-mode HTTP protocol listener) with IIS 6.0 that this infrastructure
was fully generalized. In effect, HTTP.SYS allows arbitrary user processes to share the TCP ports dedicated to HTTP traffic. This capability allows many HTTP applications to coexist on the same physical machine in separate, isolated processes while sharing
the network infrastructure required to send and receive traffic over TCP port 80. The Net.TCP Port Sharing Service enables the same type of port sharing for net.tcp applications.
我实验了不同应用下的端口共享情况,我的实验为:
IIS 部署hpcportal
WCF服务Proxy和Proxy1
1 port 443 部署 IIS (https://192.168.50.5/hpcporta) 和Proxy(https://192.168.50.5/WindowsHpc/RD-LIUYY1/jobs) 和Proxy1(https://192.168.50.5/WindowsHpc1/RD-LIUYY1/jobs),
结果正常访问,互不影响
2 port 443 部署Proxy(https://192.168.50.5/WindowsHpc/RD-LIUYY1/jobs) 和Proxy1(https://192.168.50.5/WindowsHpc/RD-LIUYY1/jobs), Proxy1无法共享端口。
疑问:
一个process只能listento 一个port,为什么可以与IIS共享?
原因分析:
由于WCF和IIS都是基于The HTTP.SYS model,只要保证域名后的相对路径(/hpcporta和/WindowsHpc)不同就不会影响,因此1 work well, 2 failed
(出处:http://msdn.microsoft.com/en-us/library/ms734772.aspx)
The ability to share ports across multiple HTTP applications has long been a feature of Internet Information Services (IIS). However, it was only with the introduction of HTTP.SYS (the kernel-mode HTTP protocol listener) with IIS 6.0 that this infrastructure
was fully generalized. In effect, HTTP.SYS allows arbitrary user processes to share the TCP ports dedicated to HTTP traffic. This capability allows many HTTP applications to coexist on the same physical machine in separate, isolated processes while sharing
the network infrastructure required to send and receive traffic over TCP port 80. The Net.TCP Port Sharing Service enables the same type of port sharing for net.tcp applications.
相关文章推荐
- 面试题:已知一个端口为22,如何查看端口对应的是什么服务名?
- 一个.java源文件中可以有多个类吗?(内部类除外)有什么条件?
- 配置CITRIX XML 服务与IIS 7.x共享端口
- IIS启动,就自动执行一个WCF服务方法的解决方案实现的疑问?
- WCF 第七章 寄宿 在一个IIS寄宿服务中开启ASMX特性
- WCF 第七章 寄宿 在一个IIS寄宿服务中开启ASMX特性
- 如何建立一个WCF服务并将其发布到IIS上
- 调用WCF不需要添加服务引用,使用一个WCFHelper类就可以
- 一个.java源文件中可以有多个类吗?(内部类除外)有什么条件?
- WCF 附录 高级主题 在服务间共享端口
- 连接路由器上面的服务,必须先查看服务是在什么端口上面监听的 ,然后让防火墙开放端口,客户端才可以访问。
- 重温WCF之构建一个简单的WCF(一)(1)通过控制台和IIS寄宿服务
- Socket TCP Server一个端口可以有多少个长连接?受到什么影响?linux最大文件句柄数量总结
- WCF 在服务间共享端口
- 调用部署在本机IIS服务器的WCF服务并返回数据DataTable,一直报错:远程主机强迫关闭了一个现有的连接,但是服务访问正常
- 一个.java源文件中可以有多个类吗?(内部类除外)有什么条件?
- 一个.java源文件中可以有多个类吗?(内部类除外)有什么条件?
- 配置CITRIX XML 服务与IIS 共享端口
- WCF服务端口共享
- 一个Windows服务如何host多个wcf服务?