@@ -96,7 +96,9 @@ export async function scrapeURLWithFireEngineChromeCDP(meta: Meta): Promise<Engi
96
96
let response = await performFireEngineScrape (
97
97
meta . logger . child ( { method : "scrapeURLWithFireEngineChromeCDP/callFireEngine" , request } ) ,
98
98
request ,
99
- defaultTimeout + totalWait ,
99
+ meta . options . timeout !== undefined
100
+ ? defaultTimeout + totalWait
101
+ : Infinity , // TODO: better timeout handling
100
102
) ;
101
103
102
104
specialtyScrapeCheck ( meta . logger . child ( { method : "scrapeURLWithFireEngineChromeCDP/specialtyScrapeCheck" } ) , response . responseHeaders ) ;
@@ -148,7 +150,9 @@ export async function scrapeURLWithFireEnginePlaywright(meta: Meta): Promise<Eng
148
150
let response = await performFireEngineScrape (
149
151
meta . logger . child ( { method : "scrapeURLWithFireEngineChromeCDP/callFireEngine" , request } ) ,
150
152
request ,
151
- defaultTimeout + meta . options . waitFor
153
+ meta . options . timeout !== undefined
154
+ ? defaultTimeout + meta . options . waitFor
155
+ : Infinity , // TODO: better timeout handling
152
156
) ;
153
157
154
158
specialtyScrapeCheck ( meta . logger . child ( { method : "scrapeURLWithFireEnginePlaywright/specialtyScrapeCheck" } ) , response . responseHeaders ) ;
@@ -182,13 +186,16 @@ export async function scrapeURLWithFireEngineTLSClient(meta: Meta): Promise<Engi
182
186
atsv : meta . internalOptions . atsv ,
183
187
geolocation : meta . options . geolocation ,
184
188
disableJsDom : meta . internalOptions . v0DisableJsDom ,
185
-
189
+
186
190
timeout : meta . options . timeout === undefined ? 300000 : undefined , // TODO: better timeout logic
187
191
} ;
188
192
189
193
let response = await performFireEngineScrape (
190
194
meta . logger . child ( { method : "scrapeURLWithFireEngineChromeCDP/callFireEngine" , request } ) ,
191
195
request ,
196
+ meta . options . timeout !== undefined
197
+ ? defaultTimeout
198
+ : Infinity , // TODO: better timeout handling
192
199
) ;
193
200
194
201
specialtyScrapeCheck ( meta . logger . child ( { method : "scrapeURLWithFireEngineTLSClient/specialtyScrapeCheck" } ) , response . responseHeaders ) ;
0 commit comments