[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnash-commit] /srv/bzr/gnash/trunk r11791: when sniffing bytes, pause b
From: |
Rob Savoye |
Subject: |
[Gnash-commit] /srv/bzr/gnash/trunk r11791: when sniffing bytes, pause briefly between attempts or this goes too fast. |
Date: |
Thu, 21 Jan 2010 22:22:12 -0700 |
User-agent: |
Bazaar (2.0.2) |
------------------------------------------------------------
revno: 11791
committer: Rob Savoye <address@hidden>
branch nick: trunk
timestamp: Thu 2010-01-21 22:22:12 -0700
message:
when sniffing bytes, pause briefly between attempts or this goes too fast.
modified:
cygnal/cygnal.cpp
=== modified file 'cygnal/cygnal.cpp'
--- a/cygnal/cygnal.cpp 2010-01-19 23:57:51 +0000
+++ b/cygnal/cygnal.cpp 2010-01-22 05:22:12 +0000
@@ -34,6 +34,7 @@
#include <sys/stat.h>
#include <fcntl.h>
+#include "GnashSleep.h"
#include "bzrversion.h"
//#include "cvm.h"
@@ -856,11 +857,12 @@
if (!hand) {
hand = new Handler;
hand->addClient(args->netfd, Network::HTTP);
- int retries = 3;
+ int retries = 10;
amf::Buffer *buf = 0;
do {
buf = hand->parseFirstRequest(args->netfd, Network::HTTP);
if (!buf) {
+ gnashSleep(10);
retries--;
continue;
} else {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Gnash-commit] /srv/bzr/gnash/trunk r11791: when sniffing bytes, pause briefly between attempts or this goes too fast.,
Rob Savoye <=