Categories

Lower Webduino server overhead with a favicon.ico

Posted on Monday, January 2nd, 2012 in Arduino, code, tcpip, web platforms by the machinegeek


Martin Lormes recently acquired an Arduino and Ethernet shield. Once he got the setup running on the web using the Webduino Arduino web server library, he checked the traffic using Wireshark and noticed that if the embedded server didn’t offer up a favicon.ico file when initially requested the browser would keep requesting the file. This required the Arduino server to continuously generate a “400 error” message in response to each request. He decided to modify the Webduino code adding a default favicon.ico (“Hello world”) response, based on the icon used in the “Web_Image” example that ships with Webduino. This way a file is provided on the initial browser request and cached, lowering Arduino server traffic load over time.

You can find Martin’s project description at his Ten Fingers and a Brain website. His modded Webduino code is posted as a fork on Github.

This entry was posted on Monday, January 2nd, 2012 at 4:00 pm and is filed under Arduino, code, tcpip, web platforms. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

2 Responses to “Lower Webduino server overhead with a favicon.ico”

  1. Peter says:

    That’s a neat trick. :-) But was Webduino really generating a 400 response? That sounds to me like a bug; it’s not a client error, just something the server is incapable of responding to. 404 might be OK, otherwise maybe a 501. I’d favour 404 just because I know that browsers tend to not re-request favicons if they 404.

    • youtube.com says:

      I’m really enjoying the design and layout of your website. It’s
      a very easy on the eyes which makes it much more enjoyable
      for me to come here and visit more often. Did you
      hire out a developer to create your theme? Excellent work!

Leave a Reply

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recent Comments

  • KH: A power-off current draw of 4mA for the Sony A6000 is a defect, product recall territory. It hits the camera battery with unacceptable wear and...
  • KH: Hydroponics is like home automation. Every year you have folks who start projects like these and think it will take off and become a big...
  • KH: Read the linked article. The A6000 has an unusually high standby/sleep current. The adapter's quiescent current is not an issue, but the A6000 sleep current...
  • Drone: Jeez, the very limited DCA: 40A/400A±3.0% capability, no RMS at all, and the CAT=DEATH rating makes this a NO BUY at any price - much...
  • Drone: Back-Story... Quoting: "HydroBot is a modular control system for automating hydroponic gardens." More about it here: http://protofusion.org/wordpress/2016/07/hydrobot/ Interesting work. But I would like to see...