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 l

Re: [lwip-users] A new users request for help with sending TCP Packets on Demand

2017-06-16 Thread Sergio R. Caprile
You need to read about two things. Perhaps three. One is TCP, and connection oriented protocols. Before sending you need to establish a connection, you can't send to iwishsomeoneisthere like UDP, which is a connection-less protocol. TCP is just like a phone call before voice mail was invented.

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

2017-06-16 Thread Noam Weissman
Hi, Just a small addition to my earlier message. Because ETH communication normally uses interrupts + DMA that means that some of the data transfer is not handled by the micro. That said means that even that we have one simple micro it is capable of handling several connections in "parallel

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

2017-06-16 Thread Simeon Trifonov
But my problems are not with slow reaction, but with hanging communication. For my point of view, the communication with my device runs quite fast, even if I limit the browser to send only one GET request at a time. So I don't search a possibility to accelerate the communication. I just want to

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

2017-06-16 Thread Noam Weissman
Hi Antonio, RAW mode API is meant to be used in systems without an OS or if you use an OS in one task, dedicated to TCP stack. Sure one connection is handled at a time because you have one micro that is able to run only one command at a time. Using threads actually worsen the situation beca

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

2017-06-16 Thread Antonio Gonga
Hi Simeon, I am not sure but I believe, the server does not send anything because it still processing the first request when the others arrive. Q: Did you try to use threads in your server ? For example I had developed one multi-thread HTTP server using LWIP-1.4 and I was able to have many HT

[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 wor