Increase web request timeout, drop failed delivery receipts (#1699)
Increase web request timeout, drop failed delivery receipts, export error logging
This commit is contained in:
		
					parent
					
						
							
								845291c51e
							
						
					
				
			
			
				commit
				
					
						cae2b10af6
					
				
			
		
					 4 changed files with 5 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -630,8 +630,8 @@
 | 
			
		|||
          }
 | 
			
		||||
        };
 | 
			
		||||
        request.onerror = function(event) {
 | 
			
		||||
          console.log('Error adding object to store:', error);
 | 
			
		||||
          reject();
 | 
			
		||||
          console.log('Error adding object to store:', event);
 | 
			
		||||
          reject(new Error('saveAllMessage: onerror fired'));
 | 
			
		||||
        };
 | 
			
		||||
      });
 | 
			
		||||
    });
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -67,6 +67,7 @@
 | 
			
		|||
                        receipt.get('source'),
 | 
			
		||||
                        receipt.get('timestamp')
 | 
			
		||||
                    );
 | 
			
		||||
                    resolve();
 | 
			
		||||
                }
 | 
			
		||||
            }.bind(this)).catch(function(error) {
 | 
			
		||||
                console.log(
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -37474,7 +37474,7 @@ var TextSecureServer = (function() {
 | 
			
		|||
            url = options.host +  '/' + options.path;
 | 
			
		||||
        }
 | 
			
		||||
        console.log(options.type, url);
 | 
			
		||||
        var timeout = typeof options.timeout !== 'undefined' ? options.timeout : 5000;
 | 
			
		||||
        var timeout = typeof options.timeout !== 'undefined' ? options.timeout : 10000;
 | 
			
		||||
 | 
			
		||||
        var fetchOptions = {
 | 
			
		||||
          method: options.type,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue