X-Original-To: pgsql-hackers@postgreSQL.org Received: from spampd.localdomain (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 72440475C15; Thu, 10 Apr 2003 22:43:33 -0400 (EDT) Received: from sss.pgh.pa.us (unknown [192.204.191.242]) by postgresql.org (Postfix) with ESMTP id 40EF0474E42; Thu, 10 Apr 2003 22:43:02 -0400 (EDT) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.12.9/8.12.9) with ESMTP id h3B2h32L008487; Thu, 10 Apr 2003 22:43:04 -0400 (EDT) To: Sean Chittenden Cc: pgsql-hackers@postgreSQL.org, pgsql-interfaces@postgreSQL.org Subject: Re: Speed of SSL connections; cost of renegotiation In-reply-to: <20030411011557.GJ79923@perrin.int.nxad.com> References: <7334.1050015002@sss.pgh.pa.us> <20030411011557.GJ79923@perrin.int.nxad.com> Comments: In-reply-to Sean Chittenden message dated "Thu, 10 Apr 2003 18:15:57 -0700" Date: Thu, 10 Apr 2003 22:43:03 -0400 Message-ID: <8486.1050028983@sss.pgh.pa.us> From: Tom Lane X-Spam-Status: No, hits=-32.5 required=5.0 tests=BAYES_01,EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT, REFERENCES,REPLY_WITH_QUOTES autolearn=ham version=2.50 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.50 (1.173-2003-02-20-exp) X-Archive-Number: 200304/344 X-Sequence-Number: 37834 Sean Chittenden writes: >> So, questions for the group: where did the decision to renegotiate >> every 64K come from? Do we need it at all? Do we need it at such a >> short interval? And if we do need it, shouldn't the logic be >> symmetric, so that renegotiations are forced during large input >> transfers as well as large output transfers? > It doesn't look like there's any guidance from mod_ssl in Apache 2.0. Yeah, I looked at mod_ssl before sending in my gripe. AFAICT Apache *never* forces a renegotiation based on amount of data sent --- all that code is intended just to handle transitions between different webpages with different security settings. So is that a precedent we can follow; or is it an optimization based on the assumption that not a lot of data will be transferred on any one web page? (But even if you assume the latter, there are plenty of web pages with more than 64K of data. It's hard to believe mod_ssl would be built like that if security demands a renegotiation every 64K or so.) regards, tom lane