This repository was archived by the owner on Jul 9, 2023. It is now read-only.
Commit 715a26d
committed
clientStream were undisposed.
---------------------------
//1st clientStream
var clientStream = new CustomBufferedStream(clientConnection.GetStream(), BufferPool, BufferSize);
sslStream = new SslStream(clientStream, false); //false => do not dispose 1st ClientStream
//2nd clientStream
clientStream = new CustomBufferedStream(sslStream, BufferPool, BufferSize);
...
sslStream?.Dispose(); // dispose sslStream but not 1st ClientStream
clientStream.Dispose(); // dispose 2nd ClientStream, sslStream (already disposed)
//here 1st clientStream is not disposed
---------------------------1 parent c894430 commit 715a26d
File tree
2 files changed
+2
-2
lines changed- src/Titanium.Web.Proxy
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
185 | | - | |
| 185 | + | |
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | 73 | | |
| |||
0 commit comments