chipKIT® Development Platform

Inspired by Arduino™

ChipKITWebServer.pde unstable from MAC OS X

Created Wed, 11 Jul 2012 13:56:41 +0000 by mirifica


mirifica

Wed, 11 Jul 2012 13:56:41 +0000

Hi everybody,

I tested ChipKITWebServer.pde from a Windows XP client (Firefox, Chrome, Internet Explorer) and it worked quite reliably. Of course, if I keep F5 = "reload page" pressed, after a lot of reloads (few seconds) the server gets stuck.

Conversely, when I tested the same server from a Mac OS X 10.5.8 client (Firefox, Chrome, Safari), I could never load more than one page before getting the following error message: "The connection to the server was reset while the page was loading."

Does anyone have an idea about what goes wrong there?


Jacob Christ

Fri, 13 Jul 2012 05:17:38 +0000

Just some random thoughts.

The demo web server waits a few ms at the bottom of the loop after it has transmitted a web page before closing the connection. Possible its closing the connection too soon. Also, the web browser when it hits the web server first asks for favorite.ico before the web page. The web server will answer both requests with a web page, possible this is confusing the mac (expecting an icon and getting a http document).

Jacob