I have two problems after converting to new interfaces
1. How to correctly close connection ?
Before I used:
nsCOMPtr<nsIChannel> channel; // somehow initialized
channel->Cancel(NS_BINDING_ABORTED);
channel=nsnull;
Now I have nsCOMPtr<nsIRequest> readRequest and writeRequest
Now, how to really close opened connection ?
2. AsyncWrite() is blocked after calling AsyncRead()
AsyncWrite() is working (I mean OnStartRequest() and onStopRequest() is
called) until I need read
from channel/request. After first calling of AsyncRead(), AsyncWrite is
probably blocked.
I forgot to mention that I'm using nsISocketTransportService to create
nsITransport.
--
Jan Varga
[EMAIL PROTECTED]