Skip to content

Commit

Permalink
BUGFIX[1659] Temporarily fixed the #47 bug of spdy as mentioned here: s…
Browse files Browse the repository at this point in the history
…pdy-http2/spdy-transport#47

Change-Id: Ib5f495ecf82f5b7c667c08e699b2c4ca2aab721b
Reviewed-on: https://git-amr-3.devtools.intel.com/gerrit/190589
Tested-by: webrtctest <webrtctest@intel.com>
Reviewed-by: Zhu, Jianjun <jianjun.zhu@intel.com>
  • Loading branch information
Xiande authored and jianjunz committed Sep 18, 2018
1 parent a34c33d commit 3d0c6e1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/samples/conference/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,17 @@
"sdk",
"gateway",
"mcu"
],
],
"scripts": {
"postinstall": "node ./quickfix2spdybug47.js"
},
"dependencies": {
"body-parser": "~1.14.1",
"express": "",
"errorhandler": "",
"morgan": "",
"socket.io": "",
"spdy":""
"spdy":"^3.4.7"
},
"engines": {
"node": ">=0.10"
Expand Down
28 changes: 28 additions & 0 deletions src/samples/conference/quickfix2spdybug47.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
let fs = require('fs')
let path = require('path')
let file = path.join(
process.cwd(),
'node_modules/spdy-transport/lib/spdy-transport/priority.js'
)

let data = fs
.readFileSync(file)
.toString()
.split('\n')
if (data.length < 190) {
data.splice(73, 0, '/*')
data.splice(75, 0, '*/')
data.splice(
187,
0,
`
var index = utils.binarySearch(this.list, node, compareChildren);
this.list.splice(index, 1);
`
)
let text = data.join('\n')

fs.writeFile(file, text, function(err) {
if (err) return console.log(err)
})
}

0 comments on commit 3d0c6e1

Please sign in to comment.