Skip to content

Commit

Permalink
implement basic request finishing
Browse files Browse the repository at this point in the history
  • Loading branch information
withinboredom committed Nov 21, 2024
1 parent 82b5c25 commit b4eab8e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions new-worker.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,10 @@ func go_frankenphp_worker_handle_request_start(threadIndex C.uintptr_t) C.bool {
//
//export go_frankenphp_finish_request
func go_frankenphp_finish_request(threadIndex C.uintptr_t, isWorkerRequest bool) {
thread := phpThreads[threadIndex]
r := thread.getActiveRequest()
fc := r.Context().Value(contextKey).(*FrankenPHPContext)
maybeCloseContext(fc)
}

// restartWorkersOnFileChanges restarts the workers on file changes.
Expand Down

0 comments on commit b4eab8e

Please sign in to comment.