MCPcopy Create free account
hub / github.com/ByConity/ByConity / updateSession

Method updateSession

src/IO/ReadWriteBufferFromHTTP.h:66–77  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64 }
65
66 void updateSession(const Poco::URI & uri)
67 {
68 ++redirects;
69 if (redirects <= max_redirects)
70 {
71 buildNewSession(uri);
72 }
73 else
74 {
75 throw Exception(ErrorCodes::TOO_MANY_REDIRECTS, "Too many redirects while trying to access {}", initial_uri.toString());
76 }
77 }
78
79 virtual ~UpdatableSessionBase() = default;
80};

Callers 1

Calls 2

ExceptionClass · 0.50
toStringMethod · 0.45

Tested by

no test coverage detected