wandenberg / nginx-push-stream-module

A pure stream http push technology for your Nginx setup. Comet made easy and really scalable.
Other
2.22k stars 295 forks source link

max length of message #10

Closed bdfy closed 12 years ago

bdfy commented 12 years ago

I want to send a file that consists of 100000 characters "1"" curl -F file=@./test -s -v -X POST 'http://localhost:7777/pub?id=test'

My nginx.conf file:

server {
listen 7777;

push_stream_store_messages on;                                                                                                                                               
push_stream_longpolling_connection_ttl 60s;                                                                                                                                  

location /pub {                                                                                                                                                              

    push_stream_publisher admin;                                                                                                                                             
    set $push_stream_channel_id             $arg_id;                                                                                                                         
}                                                                                                                                                                            

location ~ /sub/(.*) {                                                                                                                                                       
    push_stream_subscriber;                                                                                                                                                  
    set $push_stream_channels_path              $1;                                                                                                                          
}                                                                                                                                                                            

} On the client I only get 48994 characters: curl -s -v 'http://localhost:7777/sub/test'

Why ?

wandenberg commented 12 years ago

Hi,

push stream module probably received you full message and tried to delivery it, but for some reason the chunked connection drop large chunks.

I saw that happen some times when developing the module, I thought that was a problem in my code, but using the chunked filter from nginx the problem still happening.

I don't know if it is a limitation of chunked connections or not.

Regards, Wandenberg