Displaying 3 results from an estimated 3 matches for "refbuf_queue_remov".
Did you mean:
  refbuf_queue_remove
  
2004 Aug 06
0
[PATCH] Add per-listener and per-mount connection time limits.
...nfig->hostname;
      port = config->port;
***************
*** 428,435 ****
              avl_node_wlock(client_node);
  
              client = (client_t *)client_node->key;
!             
              data_done = 0;
  
              /* do we have any old buffers? */
              abuf = refbuf_queue_remove(&client->queue);
--- 437,468 ----
              avl_node_wlock(client_node);
  
              client = (client_t *)client_node->key;
! 
              data_done = 0;
+             listener_time_limit = 0;
+ 
+             /* Kick any clients that have overstayed their time limit. */
+...
2004 Aug 06
2
Re: PATCH: increase network congestion resilience
...):
<p>+int send_client_queue(client_t *client, int maxlag)
+{
+   refbuf_t *abuf;
+   long bytes, sbytes;
+   time_t now = time(NULL);
+
+   if (client->last_sent < (now - maxlag * 2)) {
+        client->con->error = 1; /* lame client or DoS */
+        return 1;
+   }
+   abuf = refbuf_queue_remove(&client->queue);
+   while (abuf) {
+       if (client->pos > 0)
+           bytes = abuf->len - client->pos;
+       else
+           bytes = abuf->len;
+       if( abuf->timestamp < (now - maxlag) /* packet too delayed, discard */ ) {
+           client->pos = 0;...
2004 Aug 06
5
Missing headers in Icecast2
Hi Karl,
Thanks for your help,
About the "Connection:" header, you are right, it's:
"Connection: close" and NOT "Connection: keep-alive". The protocol when the
SERVER sends the data is http 1.0. It's http 1.1 when the browser requests
the data.
I don't understand the "Content-Length: 54000000" header either. Also I
noticed the flash player on