Skip to main content
GPHIL.1
Associate II
April 24, 2023
Question

With lwip 2.1.2 on STM32H753, after sended an http page it seems necessary to close connexion. If not no data is received after Is it normal? thanks for help

  • April 24, 2023
  • 2 replies
  • 1113 views

..

This topic has been closed for replies.

2 replies

LCE
Principal II
April 25, 2023

I think it is normal that lwip closes the TCP connections after each http access.

I think there is this keep alive feature, which might connection management a little harder.

What's your problem with that?

GPHIL.1
GPHIL.1Author
Associate II
April 25, 2023

I think the problem comes from the huge size of the http page

I want to send an http page which contains 5 link like <link href="css/test.css" rel="stylesheet"> in the <head> part

the main http page size is about 30kbytes

each link file is about 200kbytes

I send each http file by packet of 1024bytes

without closing connexion after each file send, the page show after a long time (35min)

but if i close connexion after each file send, it 's faster