Re: ssl negotiation failed with Microsoft IIS
From: Alun Jones [MS MVP - Security] (alun_at_texis.invalid)
Date: 05/21/04
- Next message: Noël Danjou: "Re: Secure dynamic updates on Windows 2003 DNS Server"
- Previous message: Alun Jones [MS MVP - Security]: "Re: LogonUser, but no password?"
- In reply to: Eugene Mayevski: "Re: ssl negotiation failed with Microsoft IIS"
- Next in thread: Eugene Mayevski: "Re: ssl negotiation failed with Microsoft IIS"
- Reply: Eugene Mayevski: "Re: ssl negotiation failed with Microsoft IIS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 21 May 2004 16:24:28 GMT
In article <e9yo5TFPEHA.2740@TK2MSFTNGP11.phx.gbl>, Eugene Mayevski
<mayevski@eldos.org> wrote:
>The bug is that some students in MS (and in Sun) didn't study well and
>didn't learn that TCP is a stream protocol, not message protocol. What
>they assume is that if they read the data (ssl packet) from the socket
>with one call, then they either read the whole packet or they drop the
>connection. They can fail when you write first ssl packet header, then
>data and then MAC, with more than one send() call. In this case chances
>are that the recipient (IIS) will receive one or two pieces of the three
>mentioned. The solution is to write all three pieces into one buffer and
>send this buffer with one send() call.
Of course, since the data is logically connected, you really should do it
all in one send call, to avoid trapping yourself in Nagle and delayed ACK
problems, particularly with small messages
I'd be surprised if IIS currently fails completely with incomplete messages
- this is one of those things that you learn very early on. Unfortunately
I'm too busy to write a test case right now - I don't suppose you have one
handy? If I can verify this problem, I should be able to get it fixed for
you.
Alun.
~~~~
[Please don't email posters, if a Usenet response is appropriate.]
-- Texas Imperial Software | Find us at http://www.wftpd.com or email 1602 Harvest Moon Place | alun@texis.com. Cedar Park TX 78613-1419 | WFTPD, WFTPD Pro are Windows FTP servers. Fax/Voice +1(512)258-9858 | Try our NEW client software, WFTPD Explorer.
- Next message: Noël Danjou: "Re: Secure dynamic updates on Windows 2003 DNS Server"
- Previous message: Alun Jones [MS MVP - Security]: "Re: LogonUser, but no password?"
- In reply to: Eugene Mayevski: "Re: ssl negotiation failed with Microsoft IIS"
- Next in thread: Eugene Mayevski: "Re: ssl negotiation failed with Microsoft IIS"
- Reply: Eugene Mayevski: "Re: ssl negotiation failed with Microsoft IIS"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|