Bug 791906: Replace NSPR integer limit constants with stdint ones; r=ehsan
This commit is contained in:
@@ -930,7 +930,7 @@ WebSocketChannel::WebSocketChannel() :
|
||||
mDataStarted(0),
|
||||
mIncrementedSessionCount(0),
|
||||
mDecrementedSessionCount(0),
|
||||
mMaxMessageSize(PR_INT32_MAX),
|
||||
mMaxMessageSize(INT32_MAX),
|
||||
mStopOnClose(NS_OK),
|
||||
mServerCloseCode(CLOSE_ABNORMAL),
|
||||
mScriptCloseCode(0),
|
||||
@@ -2481,7 +2481,7 @@ WebSocketChannel::AsyncOpen(nsIURI *aURI,
|
||||
rv = prefService->GetIntPref("network.websocket.max-message-size",
|
||||
&intpref);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
mMaxMessageSize = clamped(intpref, 1024, PR_INT32_MAX);
|
||||
mMaxMessageSize = clamped(intpref, 1024, INT32_MAX);
|
||||
}
|
||||
rv = prefService->GetIntPref("network.websocket.timeout.close", &intpref);
|
||||
if (NS_SUCCEEDED(rv)) {
|
||||
|
||||
Reference in New Issue
Block a user