opened
surajsavita
username_0
I believe nchan_subscriber_first_message directive should be allowed to set higher number as we can configure higher numbers in nchan_message_buffer_length which makes more messages to store per channel.
Ref: https://github.com/username_1/nchan/blob/7077fc8cf761870e4fd437f961865514408b4e94/src/nchan_setup.c#L835
Can we relax limit of having max 32 in configuration of nchan_subscriber_first_message directive 
issue
created
slact
username_1
Can you give me a real-world use case for a large value for `nchan_subscriber_first_message`?
comment
created
surajsavita
username_0
Setting nchan_subscriber_first_message to some higher value can help in having functionality similar to head and tail.
I have Batch Tasks while those are running I want to show last few minutes logs live on the UI to give more context on how that batch is performing.
Consumer can connect anytime during run and they should be able to see last lets say 100 logs but not all previous logs as there could be more than 5000 logs depending upon when they are checking. 
By setting nchan_subscriber_first_message to -100 I can be sure consumers will get on 100 messages from latest which works more like a tail -100 <filename>.
comment