Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-21 Thread Simeon Trifonov
I think that all became clear now. After additional debugging I saw that the memory for the buffer is release from the function input() and I actually make a second release. This causes the problem. I organized now my code in the right way and I don't see any problems. However, more tests are

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-21 Thread Simeon Trifonov
Simon, you gave me a great advice. I knew that I have to check my code and I made this many times unfortunately without result by now. But your words "check your code if there's something that could overwrite these fields..." focused my think in another direction. When I want to give a frame

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-21 Thread Simon Goldschmidt
Simeon Trifonov wrote: > I' looking in the content of the corresponding pcb, especially the member > "unacked". Here is what I see: > The variable "len" seems to be ok - 1460. The pointer "p" points the buffer > with "len" set to 54 and "tot_len" set to 1514. > This seems to be correct too. The

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-21 Thread Simeon Trifonov
I need some help to understand how the stack works, because I cannot understand what I see when I'm debugging my problem. The situation is the following. I stopped on a breakpoint when when I receive an acknowledgement from the PC and I' looking in the content of the corresponding pcb,

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-20 Thread Simeon Trifonov
When I'm looking in my code, I think that this was exactly the problem that I have solved. Nevertheless, I removed my changes and I used the original state of the stack. I have the same problem again, so now I'm sure that at least my changes are not the reason for the problem that I'm trying

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-20 Thread goldsi...@gmx.de
Simeon Trifonov wrote: Probably you will ask now what kind of bug I mean. I don't remember, but I will try to find out. Probably my fix is not the best and you can offer me another one. If the bug was not being able to use PBUF_REF/PBUF_ROM for input (since pbuf_header does not work in

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-20 Thread Simeon Trifonov
i...@gmx.de> *Betreff:* Re: [lwip-users] Simultaneous GET requests to HTTP Server Yes, the pbuf is not what I expect to see. The length doesn't match and the content too. But I checked the higher level function and it seems to receive the correct frame during the call of the input function. Then s

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-20 Thread Simon Goldschmidt
Simeon Trifonov wrote: > See the screenshot bellow: The fact that this screenshot shows pbuf members that don't exist in the original sources makes me say: This is not "our" lwIP, how could we support it? As you correctly found out, the pbuf is somehow corrupted. I'd start to check the

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-20 Thread Simeon Trifonov
I'm still fighting with my problem. Now I know what is going wrong, but I cannot find the reason. Probably somebody can help me. I attached a Wireshark log. You can see that communication stops after the confirmation from the PC for the frames that transfer the file style.css. All seems to be

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-16 Thread Sergio R. Caprile
If you want the server to accept 6 simultaneous connections, you have to provide the stack with room for at least 6 pcbs, memory for the 6 connection structures, perhaps enough pbufs for prompt response... There's been a long time I'm not with the server, but I don't remember having a built-in

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-16 Thread Noam Weissman
t;<mailto:lwip-users-bounces+noam=silrd@nongnu.org> on behalf of Antonio Gonga <go...@kth.se><mailto:go...@kth.se> Sent: Friday, June 16, 2017 1:54 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] Simultaneous GET requests to HTTP Server Hi Simeon, I am not sure bu

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-16 Thread Simeon Trifonov
behalf of Antonio Gonga <go...@kth.se> *Sent:* Friday, June 16, 2017 1:54 PM *To:* Mailing list for lwIP users *Subject:* Re: [lwip-users] Simultaneous GET requests to HTTP Server Hi Simeon, I am not sure but I believe, the server does not send anything because it still processing the first

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-16 Thread Noam Weissman
ers-bounces+noam=silrd@nongnu.org> on behalf of Antonio Gonga <go...@kth.se> Sent: Friday, June 16, 2017 1:54 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] Simultaneous GET requests to HTTP Server Hi Simeon, I am not sure but I believe, the server does not send anyt

Re: [lwip-users] Simultaneous GET requests to HTTP Server

2017-06-16 Thread Antonio Gonga
- From: lwip-users <lwip-users-bounces+gonga=kth...@nongnu.org> on behalf of Simeon Trifonov <simeon.trifo...@amk-drives.bg> Sent: Friday, June 16, 2017 11:08 To: lwip-users@nongnu.org Subject: [lwip-users] Simultaneous GET requests to HTTP Server Hello, I need som

[lwip-users] Simultaneous GET requests to HTTP Server

2017-06-16 Thread Simeon Trifonov
Hello, I need some help about the usage of the HTTP Server. My current problem is the following. I have some WEB pages that use some styles, JavaScripts, pictures as usual. When I set an option to the WEB Browser (up to now I use always Firefox) to make only one GET request at a time, all