Response Delay in Yun Process?

Hi. I've got a Yun sketch that uses Process to call curl once every three seconds.

Arduino 1.5.4 returned garbled chars after a while, so I've switched to the most recent nightly build. This fixed garbled characters (yay!). But now I'm noticing that after eight calls, there's a big delay in reply ... more than two minutes sometimes ... then, it goes back to normal response times. Then eight calls later, another delay. I'm pretty sure it's not my server. Are there any ideas about what might be going on?

Here's a sample list of response times (in milliseconds):

Request...Done. 516 Request...Done. 511 Request...Done. 614 Request...Done. 519 Request...Done. 15871 Request...Done. 2704 Request...Done. 509 Request...Done. 508 Request...Done. 624 Request...Done. 519 Request...Done. 518 Request...Done. 519 Request...Done. 520 Request...Done. 127675 Request...Done. 833 Request...Done. 510 Request...Done. 616 Request...Done. 518 Request...Done. 508 Request...Done. 520 Request...Done. 519 Request...Done. 518 Request...Done. 31654 Request...Done. 512 Request...Done. 510 Request...Done. 508 Request...Done. 509 Request...Done. 520 Request...Done. 519 Request...Done. 519 Request...Done. 936 Request...Done. 127807 Request...Done. 511 Request...Done. 523 Request...Done. 518 Request...Done. 518 Request...Done. 520 Request...Done. 519 Request...Done. 624 Request...Done. 519 Request...Done. 15659

Can you attach the sketch?

I'm working on a library so including everything might be a little complicated, but here's the method I use for the curl process, if that helps. It gets called every 3 seconds. Process _p is a class private variable.

=====================================================

void myClass::DO_CURL (String type, String request) {

Serial.print("Request...");

_p.begin("curl"); // Begin curl command

_p.addParameter ("--request"); // Request type _p.addParameter (type);

_p.addParameter ("--header"); // Header Connection: _p.addParameter ("Connection: keep-alive");

_p.addParameter ("--header"); // Header APIKey: _p.addParameter (_REQUEST_HEADER_APIKEY);

_p.addParameter ("--header"); // Header Host: _p.addParameter (_REQUEST_HEADER_HOST);

_p.addParameter (String("http://") + THE_SERVER_NAME + request); // Add the URL

long startM = millis(); _p.run(); // Run the process long endM = millis(); Serial.print("Done. "); Serial.println (endM - startM);

}