2013-06-28

nginx-push-stream-module 笔记

Views: 33872 | Add Comments

nginx-push-stream-module 模块可用于 comet, 服务器向浏览器实时推送消息. 这个模块功能和稳定性还不错, 只是没考虑和外部系统的接口, 所以扩展性比较差. 例如权限验证, 连接的建立和断开等基础信息和外部共享等, 都缺失.

这里记录几个关键函数, 打算利用 syslog 和外部系统进行信息共享.

连接建立事件

ngx_http_push_stream_subscriber_handler();

连接断开事件

ngx_http_push_stream_cleanup_request_context();
ngx_http_push_stream_worker_subscriber_cleanup_locked();

Related posts:

  1. 为什么iComet比nginx-push-stream-module更好?
  2. HTTP 长连接技术 Comet
  3. 谈谈Facebook的聊天系统架构
  4. 150行C代码的comet服务器
Posted by ideawu at 2013-06-28 11:09:46 Tags: ,

Leave a Comment