Skip to content

Commit d602a8a

Browse files
authored
Merge pull request #98 from ambiorix-web/97-let-httpuv-handle-keeping-r-alive-to-service-requests
ch: handle continual processing of requests using httpuv
2 parents 8ac41df + fa2caea commit d602a8a

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

R/ambiorix.R

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,8 @@ Ambiorix <- R6::R6Class(
263263
self$stop()
264264
})
265265

266-
# keep R "alive"
267-
while (TRUE) {
268-
httpuv::service()
269-
}
266+
# continually process requests:
267+
httpuv::service(timeoutMs = Inf)
270268

271269
invisible(self)
272270
},

0 commit comments

Comments
 (0)