Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
e62314e9
Commit
e62314e9
authored
May 10, 2018
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
f1655eaf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
DebugCustomBufferedStream.cs
Titanium.Web.Proxy/Network/DebugCustomBufferedStream.cs
+3
-1
TcpServerConnection.cs
Titanium.Web.Proxy/Network/Tcp/TcpServerConnection.cs
+0
-2
No files found.
Titanium.Web.Proxy/Network/DebugCustomBufferedStream.cs
View file @
e62314e9
...
...
@@ -3,6 +3,7 @@ using System;
using
System.IO
;
using
System.Text
;
using
System.Threading
;
using
StreamExtended
;
using
StreamExtended.Network
;
namespace
Titanium.Web.Proxy.Network
...
...
@@ -17,7 +18,8 @@ namespace Titanium.Web.Proxy.Network
private
readonly
FileStream
fileStreamSent
;
public
DebugCustomBufferedStream
(
Guid
connectionId
,
string
type
,
Stream
baseStream
,
int
bufferSize
,
bool
leaveOpen
=
false
)
:
base
(
baseStream
,
bufferSize
,
leaveOpen
)
public
DebugCustomBufferedStream
(
Guid
connectionId
,
string
type
,
Stream
baseStream
,
IBufferPool
bufferPool
,
int
bufferSize
,
bool
leaveOpen
=
false
)
:
base
(
baseStream
,
bufferPool
,
bufferSize
,
leaveOpen
)
{
Counter
=
Interlocked
.
Increment
(
ref
counter
);
fileStreamSent
=
new
FileStream
(
Path
.
Combine
(
basePath
,
$"
{
connectionId
}
_
{
type
}
_
{
Counter
}
_sent.dat"
),
FileMode
.
Create
);
...
...
Titanium.Web.Proxy/Network/Tcp/TcpServerConnection.cs
View file @
e62314e9
...
...
@@ -84,9 +84,7 @@ namespace Titanium.Web.Proxy.Network.Tcp
public
void
Dispose
()
{
Stream
?.
Dispose
();
tcpClient
.
CloseSocket
();
proxyServer
.
UpdateServerConnectionCount
(
false
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment