title: How to set AWS Appsync request timeout limit || AWSAppSync Client not giving callback
body: <p>I'm using AWS Appsync for the current App I'm developing and facing a serious issue that is Whenever I fire queries in Appsync client, when there is slow internet connection the request never end with a callback. I checked over internet there is limited source of information on this topic and also <a href="https://github.com/awslabs/aws-mobile-appsync-sdk-ios/issues/91" rel="noreferrer">found this issue</a> that is still open.</p>
  
  <p>This is the code I used to get the response</p>
  
  <pre><code>func getAllApi(completion:@escaping DataCallback){
      guard isInternetAvailabele() else {
          completion(nil)
          return
      }
      // AppSyncManager.Client() is AWSAppSyncClient Object
      AppSyncManager.Client().fetch(query: GetlAllPostQuery(input: allInputs), cachePolicy:.fetchIgnoringCacheData) {
          (result, error) in
          var haveError:Bool = error != nil
          if let _ = result?.data?.getAllPostings?.responseCode {haveError = false} else {haveError = true}
          if haveError  {
              print(error?.localizedDescription ?? "")
              completion(nil)
              return
          }
  
          if result != nil{
              completion(result)
          }else{
              completion(nil)
          }
      }
  }
  </code></pre>
  
  <p>The code works fine with internet connection and I have already checked at the top if there is no internet but when there is slow internet connection or the wifi is connected to a hotspot that I created with my mobile with internet data disabled the request doesn't return any callback it should give failed alert like we get in other apis when the request time out.
  Is there any support for request for request time out or did I miss something?</p>
  
  <blockquote>
    <p>Note : I recieved these logs in Terminal</p>
  </blockquote>
  
  <pre><code>Task &lt;06E9BBF4-5731-471B-9B7D-19E5E504E57F&gt;.&lt;45&gt; HTTP load failed (error code: -1001 [1:60])
  Task &lt;D91CA952-DBB5-4DBD-9A90-98E2069DBE2D&gt;.&lt;46&gt; HTTP load failed (error code: -1001 [1:60])
  Task &lt;06E9BBF4-5731-471B-9B7D-19E5E504E57F&gt;.&lt;45&gt; finished with error - code: -1001
  Task &lt;D91CA952-DBB5-4DBD-9A90-98E2069DBE2D&gt;.&lt;46&gt; finished with error - code: -1001
  </code></pre>