Anandprasanna Gaitonde wrote:
>Hi all,
>I am eager to find answers to these questions. Please help.
>
>In the 0.9 version of mozilla i found two functions of nsHTTPChannel
>1) Open
>2) Ayncopen
>
>Open mainly creates a new thread for the channel
>whereas Asyncopen does not.Itmerely sets up a listenr and starts laoding the
>requested document.
>
>I feel after browsing the code that asyncopen is what is being used in
>mozilla 0.9 and not open. But please tell me if i am wrong.
>
nsHTTPChannel::Open *was* a poor implementation suffering from thread
synchronization problems. It has been removed in favor of AsyncOpen.
Please note: much of the HTTP implementation was rewritten for mozilla
0.9.1, the purpose of which was to clean up connection management and
data flow.
>
>also why is the threading not being used?? is there any performance criteria
>to select one of the two approaches.
>
The current HTTP implementation utilizes a background thread for socket
i/o and header parsing.
darin
>
>
>Please provide info.
>
>Thanks in advance
>
>Regards
>Prasanna
>
>