W3C home > Mailing lists > Public > www-lib@w3.org > July to September 2001

RE: https over proxy patch

From: Grushinskiy, Mikhail, NNAD <mgrushinskiy@att.com>
Date: Thu, 26 Jul 2001 10:58:50 -0400
Message-ID: <177C519EE5CCD31195390090278539D30546B365@njb140po04.ems.att.com>
To: Putz Doug <PutzDoug@JohnDeere.com>, www-lib@w3.org
I'm using 5.3.2. This could be the reason. Another detail (as far as I
remember)
try 

HTSSLhttps_init(NO)

instead  of

HTSSLhttps_init(YES)

What do you see in your w3chttp.out file?

--Mikhail

> -----Original Message-----
> From:	Putz Doug [SMTP:PutzDoug@JohnDeere.com]
> Sent:	Thursday, July 26, 2001 9:44 AM
> To:	Grushinskiy, Mikhail, NNAD
> Subject:	RE: https over proxy patch
> 
> Thanks Mikhail,
> 
> Things are working better, but not completely.....
> 
> WITHOUT PROXY the log shows:
>  library - :HTTPEvent..state..HTTP_BEGIN                                 
>  library - :HTHost 40039e10 going to state TCP_CONNECTED.                
>  library - :Timer....... Deleted active timer 40039ff8                   
>  library - :Event....... No more events registered for socket 4          
>  library - :Event....... Reset MaxSock from 4 to 4                       
>  library - :Event....... Socket 4 unregistered for HTEvent_CONNECT       
>  library - :HTHost 40039e10 connected.                                   
>  library - :Host connect Unlocking Host 40039e10                         
>  library - :HTTPEvent..state..HTTP_NEED_STREAM                           
>  library - :StreamStack. Constructing stream stack for text/x-http to */*
>  library - :HTTPEvent..state..HTTP_CONNECTED                
>  library - :HTTPEvent...type..HTEvent_WRITE                 
>  library - :HTTP........ Generating HTTP/1.x Request Headers
>  library - :HTTP........ Generating General Headers         
>  library - :Buffer...... Flushing 40039f80                  
>  library - :                                                
> **************** HTSSLWriter_write entering ****************
>  library - :HTSSL New... Created new SSL Object 4003a0d8    
>  library - :HTSSL....... Setting up 4003a0d8 on socket 4    
>  library - :HTSSL....... New reference count = 1            
>  library - :SSL_connect: before/connect initialization      
>  library - :SSL_connect: SSLv2/v3 write client hello A      
>  library - :SSL_connect: SSLv3 read server hello A        
>  library - :SSL_connect: SSLv3 read server certificate A  
>  library - :SSL_connect: SSLv3 read server done A         
>  library - :SSL_connect: SSLv3 write client key exchange A
>  library - :SSL_connect: SSLv3 write change cipher spec A 
>  library - :SSL_connect: SSLv3 write finished A           
>  library - :SSL_connect: SSLv3 flush data                 
>     .... and so on ....
> 
> WITH PROXY the log shows:
> 
>  library - :HTTPEvent..state..HTTP_BEGIN
> 
>  library - :HTHost 400298f8 going to state TCP_CONNECTED.
> 
>  library - :Timer....... Deleted active timer 40039c68
> 
>  library - :Event....... No more events registered for socket 3
> 
>  library - :Event....... Reset MaxSock from 3 to 1
> 
>  library - :Event....... Socket 3 unregistered for HTEvent_CONNECT
> 
>  library - :HTHost 400298f8 connected.
> 
>  library - :Host connect Unlocking Host 400298f8
> 
>  library - :HTTPEvent..state..HTTP_NEED_STREAM
> 
>  library - :StreamStack. Constructing stream stack for
> message/x-rfc822-head
> to */*
>  library - :Response.... Created 40039d00
> 
>  library - :Tee......... Created stream 4003bce8 with resolver 4000f3aa
> 
>  library - :Host info... New mode is 0 for host 400298f8
> 
>  library - :Net Manager. 1 active sockets, increasing persistent sockets
> to
> 1
>  library - :Host info... added host 400298f8 as persistent
> 
>  library - :Net Object.. Persistent connection set ON succeeded
> 
>  library - :HTTPEvent..state..HTTP_CONNECTED
> 
>  library - :HTTPEvent...type..HTEvent_WRITE
> 
>  library - :HTTP........ Generating HTTP/1.x Request Headers
> 
>  library - :HTTP........ Generating General Headers
> 
>  library - :Buffer...... Flushing 40031bd8
> 
> **************** HTSSLWriter_write entering ****************
> 
>  library - :HTSSL New... Created new SSL Object 4003bdb8
> 
>  library - :HTSSL....... Setting up 4003bdb8 on socket 3
> 
>  library - :HTSSL....... New reference count = 1
> 
>  library - :SSL_connect: before/connect initialization
> 
>  library - :SSL_connect: SSLv2/v3 write client hello A
> 
>  library - :HTSSLWriter. SSL returned 1
> 
>  library - :Error....... Add  73        Severity: 1     Parameter: `Error
> 0'
> Where: `SSLWRITE'
> 
>  library - :HTSSL....... Closing SSL Object 4003bdb8
> 
>  library - :HTTPEvent....HTTP_RECOVER_PIPE
> 
>  library - :Host recover 400298f8 recovered 1 times. Moving 1 Net objects
> from pipe line to pending queue
> 
>  library - :Event....... Couldn't find socket 3. Can't unregister type
> HTEvent_READ
> 
>  library - :Event....... Couldn't find socket 3. Can't unregister type
> HTEvent_WRITE
> 
>  library - :Host recover Resetting net object 40028da0
> 
>  library - :HTEvent_RESET
> 
>  library - :HTTP Clean.. Called with status -904, net 40028da0
> 
>  library - :HTTPGen..... ABORTING...
> 
>  library - :HTTPRequest. ABORTING...
> 
>  library - :Buffer...... ABORTING...
> 
>  library - :HTSSLWriter. Abort 40031bb8
> 
>  library - :Channel..... Semaphore set to 0 for channel 40029b48
> 
>  library - :Event....... Couldn't find socket 3. Can't unregister type
> HTEvent_READ
> 
>  library - :Event....... Couldn't find socket 3. Can't unregister type
> HTEvent_WRITE
> 
>  library - :Channel..... Delete 40029b48 with semaphore 0, status -902
> 
>  library - :Channel..... Delete input stream 40029b90 from channel
> 40029b48
> 
>  library - :HTSSLReader. Abort 40029b90
> 
>  library - :Channel..... Delete input stream 40029b90 from channel
> 40029b48
> 
>  library - :Buffer...... ABORTING...
> 
>  library - :HTSSLWriter. Abort 40031bb8
> 
>  library - :HTSSLReader. FREEING....
> 
>  library - :HTSSLWriter. FREEING....
> 
>  library - :HTSSL Free.. ref_count = 0
> 
>  library - :HTSSL.Free.. FINAL RELEASE
> 
>  library - :Net Manager. Decreasing active sockets to 0, 1 persistent
> sockets   
>  library - :Channel..... Deleted 40029b48, socket 3
> 
>  library - :Net Manager. 0 active sockets, decreasing persistent sockets
> to
> 0   
>  library - :Host info... removed host 400298f8 as persistent
> 
>  library - :Host has 1 object(s) pending - attempting launch
> 
>  library - :Host info... Popping 40028da0 from pending net queue on host
> 400298f8
> 
>  library - :HTHost...... No ActivateRequest callback handler registered
> 
>  library - :Launch pending net object 40028da0 with 0 reqs in pipe (0 reqs
> made)
>  library - :Net Object.. 40028da0 calling 4000ee5a with event type 65544
> and
> context 40029768
> 
>  library - :HTTPEvent..state..HTTP_BEGIN
> 
>  library - :Host info... Added Net 40028da0 (request 40027da0) to pipe on
> Host 400298f8, 1 requests made, 1 requests in pipe, 0 pending
> 
>  library - :HTHost...... No ActivateRequest callback handler registered
> 
>  library - :HTHost 400298f8 going to state TCP_CHANNEL.
> 
>  library - :HTHost 400298f8 going to state TCP_DNS.
> 
>  library - :ParseInet... as port ??? on ############ with 1 homes
> 
>  library - :HTHost 400298f8 going to state TCP_NEED_SOCKET.
> 
>  library - :Socket...... Created 3
> 
>  library - :Net Manager. Increasing active sockets to 1, 0 persistent
> sockets   
>  library - :Socket...... Turned off Nagle's algorithm
> 
>        .... and cycles back continously ....
> 
> 
> It seems to be in an endless cycle in the SSL stuff. This was something
> that
> you mentioned before. How did you get around the problem? Also what
> version
> of the libwww are you using?(I'm using 5.3.1)
> 
> Also, without the proxy, the StreamStack entry is:
>  library - :StreamStack. Constructing stream stack for text/x-http to */*
> yet with the proxy, the StreamStack entry is:
>  library - :StreamStack. Constructing stream stack for
> message/x-rfc822-head
> to */*
> 
> Is this because of the CONNECT message being sent to the PROXY SERVER?
> 
> The patches I'm using are from the .diff files with the extra white-spaces
> removed. I just missed puting in the changes for HTHost.c for some reason.
> 
> Any thoughts and help would be appreciated.
> 
> -----Original Message-----
> From: Grushinskiy, Mikhail, NNAD [mailto:mgrushinskiy@att.com]
> Sent: Wednesday, July 25, 2001 3:41 PM
> To: Putz Doug
> Subject: RE: https over proxy patch
> 
> 
>  <<HTHost.c>> 
> 
> > -----Original Message-----
> > From:	Putz Doug [SMTP:PutzDoug@JohnDeere.com]
> > Sent:	Wednesday, July 25, 2001 3:58 PM
> > To:	Grushinskiy, Mikhail, NNAD
> > Subject:	RE: https over proxy patch
> > 
> > Mikhail, could you send me your HTHost.c file?
Received on Thursday, 26 July 2001 10:59:32 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 23 April 2007 18:18:39 GMT