HTTP Crash

Discussion to talk about software related topics only.
Post Reply
SeeCwriter
Posts: 606
Joined: Mon May 12, 2008 10:55 am

HTTP Crash

Post by SeeCwriter »

When loading the webpage of a MOD5441X, the module crashes and goes into the Alternate Boot Monitor.
Using wireshark I see that the module starts reporting "TCP zerowindow" just before crash. I believe this means the receive buffer is full. How do I increase its size?

I'm using v2.8.4.

-------------------Trap information-----------------------------
Exception Frame/A7 =4036e5d4
Trap Vector =Unimplemented line-f opcode (11)
Format =04
Status register SR =2000
Fault Status =00
Faulted PC =302e3030

-------------------Register information-------------------------
A0=4036e5a1 A1=40352a55 A2=40072348 A3=40020eb0
A4=4036e61c A5=40098d58 A6=3b383a20 A7=4036e5d4
D0=00000537 D1=00000500 D2=00000023 D3=8000a180
D4=4036e822 D5=400529dc D6=4010e6fc D7=00000001
SR=ffff PC=302e3030
-------------------RTOS information-----------------------------
SR indicates trap from within ISR or CRITICAL RTOS section
The OSTCBCur current task control block = 80000a9c
This looks like a valid TCB
The current running task is: HTTP#2d
-------------------Task information-----------------------------
Task | State |Wait| Call Stack
Idle#3f|Ready | |4006155c,4006120c,0
Main#32|Ready | |4007f500,4007f5f4,4007b0fc,4007b85c,4007f30a,40016560,
TCPD#28|Semaphore |0001|40061ec6,4006e88a,4006120c,0
IP#27 |Critical |FRVR|4006274a,40079e78,40066800,40066a2c,40064cb4,
Enet#26|Fifo |0008|4006235c,400589bc,4006120c,0
HTTP#2d|Running | |302e3030,ffffffff,0

-------------------End of Trap Diagnostics----------------------
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: HTTP Crash

Post by TomNB »

How big is the web page you are trying to load?
SeeCwriter
Posts: 606
Joined: Mon May 12, 2008 10:55 am

Re: HTTP Crash

Post by SeeCwriter »

The sum of all the file sizes is 490k. That is, all the html/js/png/jpeg/ico files in the html sub-directory.
User avatar
TomNB
Posts: 538
Joined: Tue May 10, 2016 8:22 am

Re: HTTP Crash

Post by TomNB »

Zero window does not necessarily mean the page is too big, it just means that the buffers are full because they are not being processed. If you make a single page with an image megabytes in size, it will load fine. Do you have any callback functions on that page? The first thing I would look at is callbacks that are not doing what you may think they are. A callback that does not return control back to the test web server would exhibit the behavior you describe.
SeeCwriter
Posts: 606
Joined: Mon May 12, 2008 10:55 am

Re: HTTP Crash

Post by SeeCwriter »

You're correct. A callback was not behaving. Thank you.
Post Reply