braid-http
Advanced tools
Comparing version
@@ -950,2 +950,4 @@ | ||
try { | ||
var mux_was_done = await promise_done(mux_promise) | ||
var r = await braid_fetch(`${origin}/.well-known/multiplexer/${multiplexer}/${request}`, { | ||
@@ -957,2 +959,11 @@ method: 'DELETE', | ||
// if we know the multiplexer was created, | ||
// but it isn't there now, | ||
// and our client doesn't realize it, | ||
// then shut it down ourselves | ||
if (r.status === 404 && r.headers.get('Bad-Multiplexer') | ||
&& mux_was_done && !mux_error) { | ||
cleanup_multiplexer(new Error('multiplexer detected to be closed')) | ||
} | ||
if (!r.ok) throw new Error('status not ok: ' + r.status) | ||
@@ -959,0 +970,0 @@ if (r.headers.get('Multiplex-Version') !== multiplex_version) |
{ | ||
"name": "braid-http", | ||
"version": "1.3.55", | ||
"version": "1.3.56", | ||
"description": "An implementation of Braid-HTTP for Node.js and Browsers", | ||
@@ -5,0 +5,0 @@ "scripts": { |
87726
0.58%1715
0.53%