Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Virtual endpoint timeout #1490

Merged
merged 5 commits into from
Feb 21, 2018
Merged

Virtual endpoint timeout #1490

merged 5 commits into from
Feb 21, 2018

Conversation

ghost
Copy link

@ghost ghost commented Feb 21, 2018

Addresses https://github.com/TykTechnologies/tyk-analytics/issues/696

Code run in VirtualEndpoint now times out appropriately. Checking logic copied from https://github.com/TykTechnologies/tyk/blob/master/mw_js_plugin.go#L153

VirtualEndpoint middleware is now also run in a goroutine

Added Debug logs for jsvm timeout values

@ghost ghost requested a review from buger February 21, 2018 10:07
@@ -153,11 +158,57 @@ func (d *VirtualEndpoint) ServeHTTPForCache(w http.ResponseWriter, r *http.Reque
return nil
}

// Run the middleware
// vm := d.Spec.JSVM.VM.Copy()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls remove this debugging

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup! Forgot to add to commit

@ghost ghost requested review from buger, asoorm and joshblakeley February 21, 2018 10:44
@buger buger merged commit 8c38ce8 into master Feb 21, 2018
@buger buger deleted the virtual-endpoint-timeout branch February 21, 2018 10:53
buger pushed a commit that referenced this pull request Feb 21, 2018
Add JSVM Timeout check to VirtualEndpoint.ServeHTTPForCache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant