Quality RTOS & Embedded Software

 Real time embedded FreeRTOS RSS feed 
Real time embedded FreeRTOS mailing list 
Quick Start Supported MCUs PDF Books Trace Tools Ecosystem TCP & FAT Training




Loading

FreeRTOS 8.2.3 FreeTCPIP: webserver packet corruption with concurrent accesses

Posted by sbrauss on June 28, 2016

Hi!

I have a Renesas RX62n controller running FreeRTOS 8.2.3. I use FreeTCPIP/httpd to run a webserver on it. When I produce heavy/concurrent load, I from time to time see that the packets get corrupted (I for example sometines see corrupted pictures when I access the webserver with Internet Explorer). I can also reproduce this problem with running two instances of curl in parallel on my Linux machine, that repeatedly access different files on my target. I would like to trace it, but first wanted to ask, if someone knows about such a problem?

Thanks & best regards, Stephan


FreeRTOS 8.2.3 FreeTCPIP: webserver packet corruption with concurrent accesses

Posted by rtel on June 28, 2016

This is not something I have seen myself.

What are the files hosted on (RAM disk? SD card?)? Which file system are you using - and is it thread safe?


FreeRTOS 8.2.3 FreeTCPIP: webserver packet corruption with concurrent accesses

Posted by sbrauss on June 28, 2016

Hi!

It is the code from folders Demo/Common/ethernet/FreeTCPIP/apps/httpd and RX600RX62N-RDKGNURX/RTOSDemo/webserver, so the files are in httpd-fsdata.c.

Thanks, Stephan


FreeRTOS 8.2.3 FreeTCPIP: webserver packet corruption with concurrent accesses

Posted by rtel on June 28, 2016

Ah right - my mistake, I thought you were using the FreeRTOS+TCP stack (http://www.freertos.org/tcp).


FreeRTOS 8.2.3 FreeTCPIP: webserver packet corruption with concurrent accesses

Posted by sbrauss on June 28, 2016

I just had the idea to search my original RENESAS YRDKRX62N board and give it a try with the original demo code in FreeRTOS. I also can trigger the problem with this code. I run curl twice repeatedly, both loading file logo.jpg, and also accessing the web browser with Internet Explorer. After a while, I get corrupt files. The file lenght is correct, but the contents is bad:

COUNTER=0 while true;do curl 192.168.200.169/logo.jpg > logo.jpg 2>log3.txt DIFF=diff logo.jpg logo_orig.jpg if test -n "$DIFF"; then echo -n ERROR echo ${COUNTER} exit 1 fi ((COUNTER=${COUNTER}+1)) echo ${COUNTER} done


[ Back to the top ]    [ About FreeRTOS ]    [ Sitemap ]    [ ]




Copyright (C) 2004-2010 Richard Barry. Copyright (C) 2010-2016 Real Time Engineers Ltd.
Any and all data, files, source code, html content and documentation included in the FreeRTOSTM distribution or available on this site are the exclusive property of Real Time Engineers Ltd.. See the files license.txt (included in the distribution) and this copyright notice for more information. FreeRTOSTM and FreeRTOS.orgTM are trade marks of Real Time Engineers Ltd.

Latest News:

FreeRTOS V9.0.0 is now available for download.


Free TCP/IP and file system demos for the RTOS


Sponsored Links

⇓ Now With No Code Size Limit! ⇓
⇑ Free Download Without Registering ⇑


FreeRTOS Partners

ARM Connected RTOS partner for all ARM microcontroller cores

Renesas Electronics Gold Alliance RTOS Partner.jpg

Microchip Premier RTOS Partner

RTOS partner of NXP for all NXP ARM microcontrollers

Atmel RTOS partner supporting ARM Cortex-M3 and AVR32 microcontrollers

STMicro RTOS partner supporting ARM7, ARM Cortex-M3, ARM Cortex-M4 and ARM Cortex-M0

Xilinx Microblaze and Zynq partner

Silicon Labs low power RTOS partner

Altera RTOS partner for Nios II and Cortex-A9 SoC

Freescale Alliance RTOS Member supporting ARM and ColdFire microcontrollers

Infineon ARM Cortex-M microcontrollers

Texas Instruments MCU Developer Network RTOS partner for ARM and MSP430 microcontrollers

Cypress RTOS partner supporting ARM Cortex-M3

Fujitsu RTOS partner supporting ARM Cortex-M3 and FM3

Microsemi (previously Actel) RTOS partner supporting ARM Cortex-M3

Atollic Partner

IAR Partner

Keil ARM Partner

Embedded Artists