File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -717,6 +717,13 @@ class QuicEndpoint {
717
717
718
718
this [ kHandle ] = undefined ;
719
719
handle [ owner_symbol ] = undefined ;
720
+ // Calling waitForPendingCallbacks starts the process of
721
+ // closing down the QuicEndpoint. Once all pending writes
722
+ // to the underlying libuv udp handle have completed, the
723
+ // ondone callback will be invoked, triggering the UDP
724
+ // socket to be closed. Once it is closed, we notify
725
+ // the QuicSocket that this QuicEndpoint has been closed,
726
+ // allowing it to be freed.
720
727
handle . ondone = ( ) => {
721
728
state . udpSocket . close ( ( err ) => {
722
729
if ( err ) error = err ;
@@ -747,6 +754,7 @@ class QuicEndpoint {
747
754
return { } ;
748
755
}
749
756
757
+ // On Windows, this always returns undefined.
750
758
get fd ( ) {
751
759
return this [ kInternalState ] . fd >= 0 ?
752
760
this [ kInternalState ] . fd : undefined ;
You can’t perform that action at this time.
0 commit comments