Web server hangs after few send and receive data from client

Hi friends,
Struggling really with my small project, web based score board, It works fine for few send and receive. after that AP disappeared. I have to reset esp to make it up again,
Please help me

Code.txt (3.41 KB)