Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SW_HTTPServer by
Revision 42:0d5b682bb17a, committed 2014-09-03
- Comitter:
- Sissors
- Date:
- Wed Sep 03 10:42:33 2014 +0000
- Parent:
- 41:6f2f1fb96742
- Commit message:
- Fixed some bugs regarding processing of post stuff (it checked if received was smaller or equal to what it should receive instead of smaller, and a debug statement caused a lock up in some situations).
;
; Also by default disabled send info statement
Changed in this revision
SW_HTTPServer.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/SW_HTTPServer.cpp Wed Sep 03 09:32:17 2014 +0000 +++ b/SW_HTTPServer.cpp Wed Sep 03 10:42:33 2014 +0000 @@ -132,7 +132,7 @@ server->set_blocking(false, 10); client.set_blocking(false, 100); //@TODO client is separate from server. any way to combine? #else - #warning CC3000 detected, using modified blocking settings + #warning CC3000 detected #endif ResetPerformanceData(); PerformanceTimer.start(); @@ -295,7 +295,7 @@ { if (bytes == -1) bytes = strlen(msg); - INFO("Sending %d bytes", bytes); + //INFO("Sending %d bytes", bytes); client.send((char *)msg, bytes); } @@ -428,7 +428,7 @@ if (pVal) *pVal = '\0'; do { - INFO("ParseParameters(%s), qP:{%s}, qpCount: %d", pName, qP->name, *qpCount); + INFO("ParseParameters(%s), qpCount: %d", pName, *qpCount); qP->name = pName; pVal = strchr(pName, '='); pNextName = strchr(pName,'&'); @@ -744,8 +744,8 @@ ttlCount = strlen(dblCR); strcpy(postQueryString, dblCR); INFO(" {%s}", postQueryString); - while (ttlCount <= postBytes && !escape) { - INFO("ttlCount: %d <= postBytes: %d, of chunk %d", ttlCount, postBytes, CHUNK_SIZE); + while (ttlCount < postBytes && !escape) { + INFO("ttlCount: %d < postBytes: %d, of chunk %d", ttlCount, postBytes, CHUNK_SIZE); len = client.receive_all(postQueryString + ttlCount, CHUNK_SIZE - ttlCount); if (len > 0) { INFO(" len: %d, ttlCount: %d < postBytes %d, {%s}", len, ttlCount, postBytes, postQueryString + ttlCount);