Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SimpleWebServerWiFi Fail #11

Open
Goheeca opened this issue Mar 3, 2016 · 2 comments
Open

SimpleWebServerWiFi Fail #11

Goheeca opened this issue Mar 3, 2016 · 2 comments

Comments

@Goheeca
Copy link

Goheeca commented Mar 3, 2016

When I was playing around with Duo and this example, I came across a nasty bug.

I let the root page show on the Nexus 5 and that worked just fine, then I've used LG G3 instead of Nexus 5 and the Duo's begun blinking red. According to Photon docs the LED indicated 'Hard fault'.

How to reproduce

I've cought the communication with Wireshark and here are the particular http requests. Possibly change the host ip address in them accordingly. The Duo runs 0.2.2 fw.

The working request: nc -i 1 10.1.2.205 80 < Nexus_5
The non-working request: nc -i 1 10.1.2.205 80 < LG_G3

@JacksonLv
Copy link
Collaborator

I use some Android Phones to test it .When I use the browser of system or google browser,it doesn't have problem.But when using other browser , the problem appear.

@Goheeca
Copy link
Author

Goheeca commented Apr 2, 2016

I've looked in the code. The problem is the fixed buffer length (in which the lines from the http request have to fit in) or more generally the way of processing the http requests. The buffer is 150 bytes long. And the longest lines in requests are:

  • Nexus 5: 148 bytes
  • LG G3: 158 bytes

Clearly, that's not good for these hello world examples.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants