Comments (6)
working on PR
from jschan.
nevermind, can't figure it out. there's some disagreement between the latest version of spdy
, io.js, and jschan
.
I'm getting a bunch of this:
TypeError: Cannot read property 'session' of undefined
at Server.<anonymous> (/Volumes/alien/projects/boneskull/jschan/lib/spdy/server.js:178:43)
at emitTwo (events.js:87:13)
at Server.emit (events.js:172:7)
at Connection.onrequest (/Volumes/alien/projects/boneskull/jschan/node_modules/spdy/lib/spdy/server.js:293:10)
at emitTwo (events.js:87:13)
at Connection.emit (events.js:172:7)
at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:473:12)
at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
at Stream.start [as _start] (/Volumes/alien/projects/boneskull/jschan/node_modules/spdy/lib/spdy/stream.js:249:23)
at Connection.handleSynStream [as _handleSynStream] (/Volumes/alien/projects/boneskull/jschan/node_modules/spdy/lib/spdy/connection.js:299:10)
at Connection.handleFrame [as _handleFrame] (/Volumes/alien/projects/boneskull/jschan/node_modules/spdy/lib/spdy/connection.js:182:19)
at emitOne (events.js:77:13)
at Parser.emit (events.js:169:7)
at onFrame (/Volumes/alien/projects/boneskull/jschan/node_modules/spdy/lib/spdy/protocol/parser.js:232:12)
at /Volumes/alien/projects/boneskull/jschan/node_modules/spdy/lib/spdy/protocol/parser.js:333:5
at /Volumes/alien/projects/boneskull/jschan/node_modules/spdy/lib/spdy/protocol/parser.js:427:5
at done (/Volumes/alien/projects/boneskull/jschan/node_modules/spdy/lib/spdy/utils.js:111:7)
at afterWrite (_stream_writable.js:346:3)
at onwrite (_stream_writable.js:337:7)
at WritableState.onwrite (_stream_writable.js:89:5)
at afterTransform (_stream_transform.js:79:5)
at TransformState.afterTransform (_stream_transform.js:54:12)
at Zlib.callback (zlib.js:614:5)
When I try to use req.connection.socket.getSession()
, that doesn't work either because it's not the same socket from the connection
event, so _receive
is undefined
.
In ClientSession.prototype._createNewStream()
, I did this:
var req = http.request({
host: this.opts.host,
port: this.opts.port,
path: '/',
headers: headers,
method: 'POST',
agent: this.agent,
protocol: 'https:' // <-- this
}, function(res) {
chan.handleIn(res);
});
to avoid the original exception, but I think that alters how spdy
works, leading to this other issue
from jschan.
perhaps jschan should drop spdy altogether:
from jschan.
I think that's the plan, but we were waiting for a proper http2 implementation to be available.
from jschan.
We have: https://github.com/indutny/spdy-transport
from jschan.
i moved the spdy support to https://github.com/GraftJS/jschan-spdy, so we can switch out when needed.
this should also not stop you from using jschan anymore.
from jschan.
Related Issues (20)
- .travis.yml
- msgpack implementation HOT 4
- spdy transport HOT 1
- Unix transport HOT 3
- Performance Analysis HOT 4
- Only first frame sent for large objects.
- remove async dependency HOT 2
- Create channels from the global jsChan object HOT 2
- Passing Channels between Sessions HOT 3
- rename create*Channel to *Channel and createByteStream to byteStream HOT 1
- spdy over websocket support HOT 3
- Automatic object stream piping HOT 5
- webrtc transport HOT 6
- Echoed embedded channels break pipes HOT 3
- Rexec example: Golang server does not work with jsChan client HOT 2
- end and finish event not firing via SPDY HOT 3
- TCP Transport ? HOT 2
- Backpressure problem in stream session HOT 1
- Jschan Compatible with node 4.8.3 ? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jschan.