Hi there,
I'm suffering the very same problem I think. I installed MQX 4.1, plus patch 4.1.0.1 applied...
Running the default demo web-server, I'm doing a HTTP-GET testloop on my linux machine like this:
$ while [ true ]; do wget "http://192.168.3.43/icmpstats.cgi" -O /tmp/bla ; done
which is working fine and robust, as it uses doesn't use a seperate task (stack size = 0)
rtcdata.cgi does not work the same... when calling
$ while [ true ]; do wget "http://192.168.3.43/rtcdata.cgi" -O /tmp/bla ; done
a few subsequent wget calls are doing fine, but then suddenly the loop stops, the ressource is not available anymore.
This is the session->lock Patch I applied, but it does not help. it does not change the situation at all.
Index: httpsrv_task.c
===================================================================
--- httpsrv_task.c (revision 8288)
+++ httpsrv_task.c (working copy)
@@ -452,6 +452,7 @@
session->time = RTCS_time_get();
session->timeout = HTTPSRVCFG_KEEPALIVE_TO;
session->keep_alive = 1;
+ _lwsem_post(&session->lock);
}
break;
case HTTPSRV_SES_CLOSE:
Once the rtcdata.cgi ressource got stuck, every other ressource such as icmpstat.cgi is not available anymore, too.
I'll play around with the sources for myself, still hoping to get some help here...
cheers, Martin