mirror of
https://git.tesses.org/tesses50/tessesframework.git
synced 2026-10-01 17:14:13 +00:00
Fix license compliance and fix things up, add reverse proxy, fix some security flaws with HttpUtils
This commit is contained in:
@@ -117,4 +117,22 @@ void Stream::CopyTo(std::shared_ptr<Stream> strm, size_t buffSize) {
|
||||
strm->Flush();
|
||||
}
|
||||
Stream::~Stream() {}
|
||||
|
||||
void Stream::Shutdown(StreamShutdownMode mode) {}
|
||||
void Stream::SetSendTimeout(Tesses::Framework::Date::TimeSpan ts) {
|
||||
int64_t sec = ts.TotalSeconds();
|
||||
if (sec < 0)
|
||||
SetSendTimeout(0);
|
||||
else
|
||||
SetSendTimeout(sec);
|
||||
}
|
||||
void Stream::SetRecvTimeout(Tesses::Framework::Date::TimeSpan ts) {
|
||||
int64_t sec = ts.TotalSeconds();
|
||||
if (sec < 0)
|
||||
SetRecvTimeout(0);
|
||||
else
|
||||
SetRecvTimeout(sec);
|
||||
}
|
||||
void Stream::SetSendTimeout(uint64_t seconds) {}
|
||||
void Stream::SetRecvTimeout(uint64_t seconds) {}
|
||||
} // namespace Tesses::Framework::Streams
|
||||
|
||||
Reference in New Issue
Block a user