Giter VIP home page Giter VIP logo

express-spdy's People

Contributors

batasrki avatar eee-c avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

express-spdy's Issues

SPDY server push require('spdy').createPushStream cannot find module

nodejs v.0.6.0, express-spdy v0.1.0
express v2.5.0, connect-spdy v0.1.0, spdy v0.1.0

var express = require('express-spdy')
, fs = require('fs')
, createPushStream = require('spdy').createPushStream
, host = "https://localhost:3000/"
;

node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: Cannot find module 'spdy'

it works if I use the following patch
createPushStream = require('./node_modules/express-spdy/node_modules/spdy').createPushStream

What is the right path?

Thank you

By the way, do you have an example of SPDY server push like a "hello world" to show that data is constantly push to Client (source code, html, js, css, ...)? Appreciated.

express-spdy server sends a connection:keep-alive header

The express-spdy server sends a connection:keep-alive header in the syn_reply frame, even though the original syn_stream did not have a connection header. As far as I know, connection headers are useless in SPDY.

t=1312475149318 [st= 0] SPDY_SESSION_SYN_STREAM
--> flags = 1
--> accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
accept-charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3
accept-encoding: gzip,deflate,sdch
accept-language: en-US,en;q=0.8
host: sfo-lpwng:3000
method: GET
scheme: https
url: /
user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_7) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/13.0.782.107 Safari/535.1
version: HTTP/1.1
--> id = 1
t=1312475149323 [st= 5] SPDY_SESSION_SYN_REPLY
--> flags = 0
--> connection: keep-alive
content-length: 689
content-type: text/html
status: 200 OK
version: HTTP/1.1
x-powered-by: Express
--> id = 1

Cannot find module ./zlib_bindings (express-spdy)

nodejs v0.5.9 express-unstable v2.4.3 spdy v0.1.2 express-spdy v0.0.4 zlibcontext v1.0.7

when I run "node app.js", I got

Error: Cannot find module './zlib_bindings'
at Function._resolveFilename (module.js:334:11)
at Function._load (module.js:279:25)
at Module.require (module.js:357:17)
at require (module.js:368:17)
at Object. (/home/admin1/lmcnatr/helloworld/ex-spdy2/node_modules/express-spdy/node_modules/spdy/node_modules/zlibcontext/lib/zlib.js:2:18)
at Module._compile (module.js:432:26)

/node_modules/express-spdy/node_modules/spdy/node_modules/zlibcontext/lib/zlib.js
module.exports = require('./zlib_bindings');

Any idea?

Thank you

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.