mod-spdy Code Flow

38 views
Skip to first unread message

Suyambulingam R M

unread,
Jul 30, 2012, 12:58:12 AM7/30/12
to mod-spdy...@googlegroups.com
Hi All,

I am new to mod-spdy. I am trying to find the code flow from start to end of mod spdy. Am experiencing some difficulties. Is there any code flow documents u have for mod-spdy.  ? If so can some one help me with understanding the code flow. Thanks a lot in advance.


Thanks & Regards,
Suyambulingam

Matthew Steele

unread,
Jul 30, 2012, 10:48:00 AM7/30/12
to mod-spdy...@googlegroups.com
On Mon, Jul 30, 2012 at 12:58 AM, Suyambulingam R M <lingam....@gmail.com> wrote:
Hi All,

I am new to mod-spdy. I am trying to find the code flow from start to end of mod spdy. Am experiencing some difficulties. Is there any code flow documents u have for mod-spdy.  ? If so can some one help me with understanding the code flow. Thanks a lot in advance.

The closest thing that exists at the moment is the very rough, high-level overview here:  http://code.google.com/p/mod-spdy/wiki/HowItWorks

If you're reading the source code and trying to understand how it all fits together, I would start by looking through src/mod_spdy/mod_spdy.cc and src/mod_spdy/common/spdy_session.{h,cc}, and going from there.  They're pretty heavily commented, so hopefully it should be possible to see how they're supposed to work.

If you have any specific questions, I would be happy to try to answer them.

Cheers,
-Matthew

Suyambulingam R M

unread,
Jul 30, 2012, 11:23:59 AM7/30/12
to mod-spdy...@googlegroups.com
Hi Steele,

Thanks a lot for your response. I was looking into the mod-spdy code base today. I got ideas abt how it is converting Spdy-Http and Http back to Spdy and all. But i didnt get any information about how and when the sockets,SSL_Contexts are created etc. I can find only the conversion steps in mod_spdy.cc and its releted files. I needed the point in the code where the client's socket (Browser's Socket connection) is accepted in mod-spdy. It will be very helpful if u provide some informations related to SocketCreations, and how the socket is bound to Spdy etc. Thanks in advance.


Thanks & Regards,
Suyambulingam.R.M

Matthew Steele

unread,
Jul 30, 2012, 11:43:04 AM7/30/12
to mod-spdy...@googlegroups.com
On Mon, Jul 30, 2012 at 11:23 AM, Suyambulingam R M <lingam....@gmail.com> wrote:
Hi Steele,

Thanks a lot for your response. I was looking into the mod-spdy code base today. I got ideas abt how it is converting Spdy-Http and Http back to Spdy and all. But i didnt get any information about how and when the sockets,SSL_Contexts are created etc. I can find only the conversion steps in mod_spdy.cc and its releted files. I needed the point in the code where the client's socket (Browser's Socket connection) is accepted in mod-spdy. It will be very helpful if u provide some informations related to SocketCreations, and how the socket is bound to Spdy etc. Thanks in advance.

mod_spdy itself does not deal with binding network sockets or maintaining SSL state; those are handled by Apache and mod_ssl.  mod_spdy is simply an add-on to Apache that adds SPDY frame parsing and request handling on top of Apache's existing network/SSL support.

Cheers,
-Matthew

Suyambulingam R M

unread,
Jul 31, 2012, 10:35:54 AM7/31/12
to mod-spdy...@googlegroups.com
Hi Matthew,

Thanks for the information. Today i tried to compiled apache2 from source am able to compile successfully. Both http,https is working in my machine. I tried to add mod-spdy(SPDY support) to my compiled apache directory in /usr/apache2. But it is not working. Is there any different steps needs to be followed to add mod-spdy to apache module(which is compiled from source) ? Thanks in advance.

Regards,
Suyambulingam.R.M
Reply all
Reply to author
Forward
0 new messages