File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,17 @@ static const char* tryTcpFastOpen(FFNetworkingState* state)
5757        #ifndef  __APPLE__ 
5858        FF_DEBUG ("Using sendto() + MSG_FASTOPEN to send %u bytes of data" , state -> command .length );
5959        ssize_t  sent  =  sendto (state -> sockfd ,
60-                              state -> command .chars ,
61-                              state -> command .length ,
60+                                state -> command .chars ,
61+                                state -> command .length ,
6262            #ifdef  MSG_FASTOPEN 
63-                              MSG_FASTOPEN  |
63+                                MSG_FASTOPEN  |
6464            #endif 
65-                              MSG_DONTWAIT ,
66-                              state -> addr -> ai_addr ,
67-                              state -> addr -> ai_addrlen );
65+             #ifdef  MSG_NOSIGNAL 
66+                               MSG_NOSIGNAL  |
67+             #endif 
68+                               MSG_DONTWAIT ,
69+                               state -> addr -> ai_addr ,
70+                               state -> addr -> ai_addrlen );
6871        #else 
6972        if  (fcntl (state -> sockfd , F_SETFL , O_NONBLOCK ) ==  -1 ) {
7073            FF_DEBUG ("fcntl(F_SETFL) failed: %s" , strerror (errno ));
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments