diff --git a/httprl.module b/httprl.module
index ccf0897..84ccd07 100644
--- a/httprl.module
+++ b/httprl.module
@@ -322,6 +322,11 @@ function httprl_set_default_options(&$options) {
     'async_connect' => TRUE,
   );
 
+  // Adjust Time To First Byte Timeout if timeout is large and ttfb is default.
+  if ($options['timeout'] > httprl_variable_get('httprl_timeout', HTTPRL_TIMEOUT) && $options['ttfb_timeout'] == httprl_variable_get('httprl_ttfb_timeout', HTTPRL_TTFB_TIMEOUT)) {
+    $options['ttfb_timeout'] = $options['timeout'] - max(1, httprl_variable_get('httprl_timeout', HTTPRL_TIMEOUT) - httprl_variable_get('httprl_ttfb_timeout', HTTPRL_TTFB_TIMEOUT));
+  }
+
   // Merge the default headers.
   // Set user agent to drupal.
   // Set connection to closed to prevent keep-alive from causing a timeout.
