/* This Source Code Form is subject to the terms of the Mozilla Public = * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
conststatic uint32_tkSendingChunkSize = 1600java.lang.StringIndexOutOfBoundsException: Index 50 out of bounds for length 50 conststatic uint32_t kTCPSendBufferSize = 131072; conststatic uint32_t kInitialPushAllowance = 131072; // match default pref
// This is roughly the amount of data a suspended channel will have to // buffer before h2 flow control kicks in. conststatic uint32_t kInitialRwin = 12 * 1024 * 1024; // 12MB
conststatic uint32_t kDefaultMaxConcurrent = 100;
// soft errors are errors that terminate a stream without terminating the // connection. In general non-network errors are stream errors as well // as network specific items like cancels. staticbool SoftStreamError(nsresult code) { if (NS_SUCCEEDED(code) || code == NS_BASE_STREAM_WOULD_BLOCK) { returnfalse;
}
// this could go either way, but because there are network instances of // it being a hard error we should consider it hard. if (code == NS_ERROR_FAILURE || code == NS_ERROR_OUT_OF_MEMORY) { returnfalse;
}
if (NS_ERROR_GET_MODULE(code) != NS_ERROR_MODULE_NETWORK) { returntrue;
}
using ALPNCallback = bool (*)(nsITLSSocketControl*);
// this is essentially a single instantiation as a member of nsHttpHandler. // It could be all static except using static ctors of XPCOM objects is a // bad idea. class SpdyInformation { public:
SpdyInformation();
~SpdyInformation() = default;
SpdyVersion Version; // telemetry enum e.g. SPDY_VERSION_31
nsCString VersionString; // npn string e.g. "spdy/3.1"
// the ALPNCallback function allows the protocol stack to decide whether or // not to offer a particular protocol based on the known TLS information // that we will offer in the client hello (such as version). There has // not been a Server Hello received yet, so not much else can be considered.
ALPNCallback ALPNCallbacks;
};
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.