File tree Expand file tree Collapse file tree
src/worker/accessorHandlers Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2929 "mkdirp" : " ^1.0.4" ,
3030 "node-fetch" : " ^2.6.1" ,
3131 "tmp" : " ~0.2.1" ,
32- "tv-automation-quantel-gateway-client" : " 3.0.3 " ,
32+ "tv-automation-quantel-gateway-client" : " 3.1.0 " ,
3333 "windows-network-drive" : " ^3.0.1" ,
3434 "xml-js" : " ^1.6.11"
3535 },
4545 " eslint"
4646 ]
4747 }
48- }
48+ }
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ import { joinUrls } from './lib/pathJoin'
1515
1616/** The minimum amount of frames where a clip is minimumly playable */
1717const MINIMUM_FRAMES = 10
18+ /** How long to wait for a response from Quantel Gateway before failing */
19+ const QUANTEL_TIMEOUT = 10 * 1000
1820
1921/** Accessor handle for handling clips in a Quantel system */
2022export class QuantelAccessorHandle < Metadata > extends GenericAccessorHandle < Metadata > {
@@ -408,7 +410,9 @@ export class QuantelAccessorHandle<Metadata> extends GenericAccessorHandle<Metad
408410 // Note: We need to store a Promise<QuantelGateway> in the cache because otherwise many QuantelGateways
409411 // can be created if multiple calls to this are done synchronously.
410412
411- const gateway = new QuantelGateway ( )
413+ const gateway = new QuantelGateway ( {
414+ timeout : QUANTEL_TIMEOUT ,
415+ } )
412416 this . worker . logger . debug ( `Quantel.QuantelGateway: Created new Quantel Gateway client "${ id } "` )
413417 gateway . on ( 'error' , ( e ) => this . worker . logger . error ( `Quantel.QuantelGateway: ${ JSON . stringify ( e ) } ` ) )
414418
Original file line number Diff line number Diff line change @@ -10930,10 +10930,10 @@ tunnel-agent@^0.6.0:
1093010930 dependencies:
1093110931 safe-buffer "^5.0.1"
1093210932
10933- tv-automation-quantel-gateway-client@3.0.3 :
10934- version "3.0.3 "
10935- resolved "https://registry.yarnpkg.com/tv-automation-quantel-gateway-client/-/tv-automation-quantel-gateway-client-3.0.3. tgz#98811f6d35ff7d4f66360cdd30269b91e95834ba "
10936- integrity sha512-n2vpRUoVSuoQz+tnSdHnRSbF0+1C2kElZKdUaouC2oEZSvEc7kisyochJVR858OyNWi6VpZ1fmkGQZqsYV1UfA ==
10933+ tv-automation-quantel-gateway-client@3.1.0 :
10934+ version "3.1.0 "
10935+ resolved "https://registry.yarnpkg.com/tv-automation-quantel-gateway-client/-/tv-automation-quantel-gateway-client-3.1.0. tgz#52f44ea8051eb8d1c89dc1a9dc71c4d1cbdf4485 "
10936+ integrity sha512-m+69vbwH6lhbHxcnKPnV8yTetWF/tbRaBbR5nIR1v12wZ1YktxjrU+bCiEJOIT8m5Bs4itt9XpBGf4ImCGOkpg ==
1093710937 dependencies:
1093810938 got "^11.8.6"
1093910939
You can’t perform that action at this time.
0 commit comments