Skip to content

Commit

Permalink
Default ModelSync.REST.HTTP_TIMEOUT to 30 seconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
ericf committed May 11, 2012
1 parent 0615139 commit 1c3f13a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/gallery-model-sync-rest/js/model-sync-rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,17 @@ RESTSync.HTTP_HEADERS = {
};

/**
Default number of milliseconds before the XHR will timeout/abort.
The number of milliseconds before the XHR will timeout/abort. This defaults to
30 seconds.
This can be overridden on a per-request basis.
**Note:** This can be overridden on a per-request basis. See `sync()` method.
@property HTTP_TIMEOUT
@type Number
@default 30000
@static
@default undefined
**/
RESTSync.HTTP_TIMEOUT = 30000;

/**
Static flag to use the HTTP POST method instead of PUT or DELETE.
Expand Down

0 comments on commit 1c3f13a

Please sign in to comment.