You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//somewhere for client offering
controller = new AbortController();
signal = controller.signal;
return fetch("/offer", {,.... ,signal})
//somewhere when i want to cancel the operation with a button click:
controller.abort();
Steps to reproduce:
run aiohttp/aiortc server
fetch /index.html from the browser
click the start button one time and immediately click the stop button one time
Repeat step 3 ~5 times
Refetch /index.html from the browser
Error fetching /index.html after this operation
There is no error in the server.
I cannot post the full example because it's too big.
I am trying something like:
document.body.addEventListener("dblclick",async function(){
for(var i=0;i<10;i++){
$("#control_call_button").click();
await sleep(2000);
$("#stop_call_button").click();
await sleep(2000);
}
})
//in the client I have ten requests to /offer but the server run async def offer less than ten times :(
After all connections are closed i can't reload the html page.
So when:
if request.transport is None or request.transport.is_closing(): is detected is there something i can do to clean the task, request or something simillar?
This discussion was converted from issue #1032 on January 23, 2024 12:33.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Steps to reproduce:
Error fetching /index.html after this operation
There is no error in the server.
I cannot post the full example because it's too big.
I am trying something like:
After all connections are closed i can't reload the html page.
So when:
if request.transport is None or request.transport.is_closing():
is detected is there something i can do to clean the task, request or something simillar?Beta Was this translation helpful? Give feedback.
All reactions