Re: Failed uploading file to Appache HTTP Server after using SSL

2006-04-19 Thread Ken Chen
Hi Cliff,

Thanks for your advice.

Now seems when uploading big file has problem in ssl.  When I upload a
3K image file, it's ok.  But when I upload a 35K image file.  It
failed.

Is there any place to set the cache/buffer?  Or I have to set
SSLSessionCache and SSLSessionCacheTimeout?

By the way, I don't understand why to use openssl s_client and issue a
GET request?  I am uploading file.  Isn't it a POST request?  Can you
have a brief sample how to test?

Thanks in advance.

Ken


On 4/18/06, Cliff Woolley [EMAIL PROTECTED] wrote:
 On 4/18/06, Ken Chen [EMAIL PROTECTED] wrote:

  1.  If users access our server via https:// through the web
  server, it fails to upload.  Backend source encountered
  NullPointerException when accessing the FileItem requested.
  2.  But if users access our server via http://... through the web
  server, there is no that problem.
  Hence I think there should be something wrong with the request parsing
  through https.
  Any advice/clue to check where or how to solve it is greatly
  appreciated.   Thanks in advance.


 A couple of suggestions: (1) turn on debug logging in mod_ssl... this will
 give you a byte-by-byte dump of the SSL transaction in the log file.  (2)
 try connecting to your https server with openssl s_client and then issuing
 a GET request by hand.  That can often be instructive.

 --Cliff


--
--
Ken Chen
__
Apache Interface to OpenSSL (mod_ssl)   www.modssl.org
User Support Mailing List  modssl-users@modssl.org
Automated List Manager[EMAIL PROTECTED]


Re: Failed uploading file to Appache HTTP Server after using SSL

2006-04-19 Thread Cliff Woolley
On 4/19/06, Ken Chen [EMAIL PROTECTED] wrote:
Now seems when uploading big file has problem in ssl.When I upload a3K image file, it's ok.But when I upload a 35K image file.Itfailed.Ah, I see.
Is there any place to set the cache/buffer?Or I have to setSSLSessionCache and SSLSessionCacheTimeout?You should set the session cache anyway (failing to do so will result in a major drop in performance), but this should have no effect on the particular problem you're describing.
By the way, I don't understand why to use openssl s_client and issue aGET request?I am uploading file.Isn't it a POST request?Can you
have a brief sample how to test?It was unclear to me from your original message that *any* https was working, so I was trying to just give you the most basic test to try. I didn't realize you could upload small files successfully.
Did you turn on the ssl debug log and look at the spot in the large file upload where it failed?--Cliff