Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

HttpListenerRequest Bug

HttpListenerRequest

  • Please log in to reply
2 replies to this topic

#1 teknix1

teknix1

    Member

  • Members
  • PipPip
  • 19 posts

Posted 19 March 2013 - 10:47 PM

Well looks like my luck hasn't been too good lately. I seem to be crossing a few issues implementing my own http server. The latest is a blocking socket read way down in onw of the framework libraries. Luckily enough this bug has already been solved over at TinyCLR (http://www.tinyclr.c...page=3#msg53484). Unfortunately, my only solution is to rebuild my own firmware and that is not an option right now, because of another problem I am pursuing with the ContentLength64 property of the response object. That one only occurs with GCC built firmwares.

 

Has anybody stumbled across this issue? I'd like to hear about your solution to this if possible.

 

Thanks in advance!

Nic



#2 NeonMika / Markus VV.

NeonMika / Markus VV.

    Advanced Member

  • Members
  • PipPipPip
  • 209 posts
  • LocationUpper Austria

Posted 20 March 2013 - 07:07 AM

I have to go to university now, but at least I can give you the advice to look at my werbserver code (or even use it ;) )

I'm not sure if it helps you becaue I worked with Sockets, because I didn't want to have to abstraction layer (and overhead) the HttpListener would have had.

 

Greets, Markus


NeonMika.Webserver
> Control your N+ and write webservice methods easyily
> Receive data from you N+ (in XML or JSON)
> Browse the SD on your N+ directly in the browser and d
own - and upload files

 

If you need help with NeonMika.Webserver, please just leave a note in the thread and/or contact me via Skype :)

 

-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
--- Mistakes teach you important lessons. Every time you make one, you are one step closer to your goal. ----
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------


#3 teknix1

teknix1

    Member

  • Members
  • PipPip
  • 19 posts

Posted 20 March 2013 - 02:00 PM

Thanks Markus,

 

I will definitely have a look.

 

I since realized the bug is not a piece of code that gets embedded in the firmware, so I was able to rebuild that assembly and include it in my project. Works better but as always, I fix one bug and I find another one... I think I'm going to end up making a solution with all of the .Net Micro Framework projects and reference those so I can debug and step through. I haven't found the correct way to do that.

 

Thanks

Nic






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.