Skip to content

Commit ee1f890

Browse files
committed
Add requestTimeout to be able to configure TimeoutBox
1 parent 531503a commit ee1f890

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/foam/dao/EasyDAO.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,13 +728,19 @@ dao loading, which improves overall startup time.`,
728728
generateJava: false,
729729
value: true
730730
},
731+
{
732+
name: 'requestTimeout',
733+
generateJava: false,
734+
units: 'ms'
735+
},
731736
{
732737
documentation: 'Destination address for server',
733738
name: 'serverBox',
734739
generateJava: false,
735740
factory: function() {
736741
// TODO: This should come from the server via a lookup from a NamedBox.
737742
var box = this.TimeoutBox.create({
743+
timeout: this.requestTimeout || undefined,
738744
delegate: this.remoteListenerSupport ?
739745
this.WebSocketBox.create({uri: this.serviceName}) :
740746
this.HTTPBox.create({url: this.serviceName})

0 commit comments

Comments
 (0)