-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fix proxy slowdown with intercepted HTTPS requests #6705
Conversation
Thanks for the contribution! Below are some guidelines Cypress uses when doing PR reviews.
PR Review ChecklistIf any of the following requirements can't be met, leave a comment in the review selecting 'Request changes', otherwise 'Approve'. User Experience
Functionality
Maintainability
Quality
Internal
|
Test summaryRun details
View run in Cypress Dashboard ➡️ This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard |
85c6688
to
c7041e2
Compare
Used this script to play with /* eslint-disable no-console */
const _ = require('lodash')
const Bluebird = require('bluebird')
const rp = require('request-promise')
const { Agent } = require('https')
const test = async () => {
await Bluebird.delay(500)
let agent = new Agent({ keepAlive: false })
console.time('making 100 https requests')
await Bluebird.all(_.times(100, async () => {
await rp('https://weeny.chary.us/static/5MB.zip', { agent, gzip: false })
}))
console.timeEnd('making 100 https requests')
await Bluebird.delay(500)
agent = new Agent({ keepAlive: false })
agent.createConnection = function (options, cb) {
options.minVersion = 'TLSv1'
cb(null, Agent.prototype.createConnection.call(agent, options))
}
console.time('making 100 https requests with minVersion = TLSv1')
await Bluebird.all(_.times(100, async () => {
await rp('https://weeny.chary.us/static/5MB.zip', { agent, gzip: false })
}))
console.timeEnd('making 100 https requests with minVersion = TLSv1')
}
Bluebird.mapSeries(_.times(1), test) |
User facing changelog
Additional details
server-performance-spec
s if you look before and after this got mergedproxy_performance_spec
setNoDelay(true)
, they are slightly faster, though not as fast as requests with an HTTP upstreamHow has the user experience changed?
PR Tasks
cypress-documentation
?type definitions
?cypress.schema.json
?