braid-http 1.3.68 → 1.3.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/braid-http-client.js +4 -4
- package/package.json +1 -1
package/braid-http-client.js
CHANGED
|
@@ -977,7 +977,7 @@ async function create_multiplexer(origin, mux_key, params, mux_params, attempt)
|
|
|
977
977
|
+ ', expected ' + multiplex_version)
|
|
978
978
|
} catch (e) {
|
|
979
979
|
e = new Error(`Could not cancel multiplexed request: ${e}`)
|
|
980
|
-
console.error('' + e)
|
|
980
|
+
// console.error('' + e)
|
|
981
981
|
throw e
|
|
982
982
|
} finally { try_deleting.delete(request) }
|
|
983
983
|
}
|
|
@@ -1026,8 +1026,8 @@ async function create_multiplexer(origin, mux_key, params, mux_params, attempt)
|
|
|
1026
1026
|
+ ', expected ' + multiplex_version)
|
|
1027
1027
|
} catch (e) {
|
|
1028
1028
|
// fallback to normal fetch if multiplexed connection fails
|
|
1029
|
-
console.error(`Could not establish multiplexer.\n`
|
|
1030
|
-
|
|
1029
|
+
// console.error(`Could not establish multiplexer.\n`
|
|
1030
|
+
// + `Got error: ${e}.\nFalling back to normal connection.`)
|
|
1031
1031
|
cleanup_multiplexer('retry', true)
|
|
1032
1032
|
return false
|
|
1033
1033
|
}
|
|
@@ -1189,7 +1189,7 @@ async function create_multiplexer(origin, mux_key, params, mux_params, attempt)
|
|
|
1189
1189
|
// how did it go?
|
|
1190
1190
|
if (x.result === 'error') {
|
|
1191
1191
|
// if we got an error, give up
|
|
1192
|
-
console.log(`headers_buffer: ` + new TextDecoder().decode(headers_buffer))
|
|
1192
|
+
// console.log(`headers_buffer: ` + new TextDecoder().decode(headers_buffer))
|
|
1193
1193
|
throw new Error('error parsing headers')
|
|
1194
1194
|
} else if (x.result === 'waiting') {
|
|
1195
1195
|
if (request_ended)
|