FromSwarm::DialFailure is emitted even though dial is successfull?
              
              #5667
            
            
              
                Unanswered
              
          
                  
                    
                      binarybaron
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment 1 reply
-
| 
         Hey!  Lines 451 to 472 in 4192fc3 By default, it would yield the error if youre attempting to dial a peer that is connected or that has an dial attempt queued.  | 
  
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm building an application where I have a bunch of different protocols composed into one big
Behaviour. Some of my protocols userequest-response. I have an event loop that's going through a queue for requests that have to be sent out and responds to the caller (using MPSC channels) with the result (either failure or the response).I'm listening for a
OutboundFailureevent. If I receive one I assume the request has failed.Here's my question: Why is
OutboundFailure::DialFailurebeing thrown even if the connection is successfully established?.I'm seeing that the dial failed previously using a different transport (dummy transport, and an optional transport that routed over tor) but the last transport it tried (tcp) successfully established an connection.
Is
DialFailurebeing thrown for every attempted dial for every tried transport, even if not all available transports have been tried yet?Here's a snippet of some of my logging. Of course there's quote a bit of context missing but I think it'll demonstrate my point:
Beta Was this translation helpful? Give feedback.
All reactions