“I submit WCF's various reader quotas and limits as irrefutable proof the way to hell is paved with good intentions.”

Download Report

Transcript “I submit WCF's various reader quotas and limits as irrefutable proof the way to hell is paved with good intentions.”

“I submit WCF's various reader
quotas and limits as irrefutable
proof the way to hell is paved
with good intentions.”
Property
On
Old Value
New Value
ChannelInitializationTimeout
ListenBacklog
MaxPendingAccepts
MaxPendingAccepts
MaxPendingConnections
ReceiveTimeout
NetTcpBinding
NetTcpBinding, SMSvcHost.exe
NetTcpBinding, NamedPipeBinding
SMSvcHost.exe
NetTcpBinding, NamedPipeBinding
SMSvcHost.exe
5 sec
10
1
2
10
10 sec
30 seconds
16 * processor count
2 * processor count
4 * processor count
12 * processor count
30 seconds
Name
Old Value
New Value
MaxArrayLength
MaxBytesPerRead
MaxDepth
MaxNameTableCharCount
MaxStringContentLength
16384 elements
4096 bytes
32 nodes deep
16384 characters
8192 characters
Int32.MaxValue (text)
Int32.MaxValue (text)
128
Int32.MaxValue (text)
Int32.MaxValue (text)
1
HTTP
Client
TCP
HTTP Upgrade Request
HTTP
Server
GET /chat HTTP/1.1
Host: example.com
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Key: dGhlIHNhbXBsZSBub25jZQ==
Sec-WebSocket-Origin: http://example.com
1
HTTP
Client
2
HTTP
Client
TCP
HTTP Upgrade Request
TCP
HTTP Switching Protocols Response
HTTP
Server
HTTP
Server
HTTP/1.1 101 Switching Protocols
Upgrade: websocket
Connection: Upgrade
Sec-WebSocket-Accept: s3pPLMBiTxaQ9kYGzzhZRbK+xOo=
1
HTTP
Client
2
HTTP
Client
3
Web
Socket
TCP
HTTP Upgrade Request
TCP
HTTP Switching Protocols Response
TCP
WebSocket Messages
WebSocket Messages
Binary or UTF8
Messages or streams
HTTP
Server
HTTP
Server
Web
Socket
http://www.microsoft.com/visualstudio/en-us
Somasegar’s Blog
http://blogs.msdn.com/b/somasegar/
http://blogs.msdn.com/b/jasonz/
http://www.facebook.com/visualstudio
http://twitter.com/#!/visualstudio
http://northamerica.msteched.com
www.microsoft.com/learning
http://microsoft.com/technet
http://microsoft.com/msdn