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
Whatever our create_connection looks like (#8), it'd be neat if it automatically did happy eyeballs :-). This should be pretty trivial (though it'd help if #7 was sorted), basically something like:
asyncdefcreate_connection(host, port):
first_family=Noneresults=awaitgetaddrinfo(...)
# pick the first two results with different AF_* settingsfirst_res=results[0]
second_res= [resforresinresultsifres[0] !=first_res[0]][0]
asyncdefconnect1():
returnawaitconnect_to(first_res)
asyncdefconnect2():
awaittrio.sleep(0.300)
returnawaitconnect_to(second_res)
# 'race' runs several tasks, returns the one that finishes first, and cancels the othersreturnawaitrace(connect1, connect2)
(+ the mandatory caching the RFC 6555 specifies)
The text was updated successfully, but these errors were encountered:
Whatever our
create_connection
looks like (#8), it'd be neat if it automatically did happy eyeballs :-). This should be pretty trivial (though it'd help if #7 was sorted), basically something like:(+ the mandatory caching the RFC 6555 specifies)
The text was updated successfully, but these errors were encountered: