[lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Grzegorz Niemirowski
Hello, I write code for SMT32 board using FreeRTOS and lwIP 1.4.1. I use sockets. There is a simple TCP server: it accepts incoming connection, reads 100 bytes sent from PC, sends 100 byte reply, closes connection and waits for another connection. I observed that after some time lwIP stops

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Noam weissman
Hi, You must check interrupt priorities and your FreeRTOSConfig definition file Here is my interrupt settings from the FreeRTOSConfig .h file: /* Cortex-M specific

[lwip-users] lwIP 1.4.1 server's SYN flood hang, no backlog

2014-09-02 Thread Tomek
Hi, I have some issues with device based on FreeRTOS (stm32F4 port) and lwIP 1.4.1 stack. There is parallel server and client functionality. Case similiar to one described here: http://lwip.100.n7.nabble.com/SYN-flood-attack-lwip-crash-td17632.html, but with one significant difference: I don't

Re: [lwip-users] lwIP 1.4.1 server's SYN flood hang, no backlog

2014-09-02 Thread Simon Goldschmidt
Tomek wrote: Case similiar to one described here: http://lwip.100.n7.nabble.com/SYN-flood-attack-lwip-crash-td17632.html, but with one significant difference: I don't use backlog. Does that mean you are absolutely sure that TCP_LISTEN_BACKLOG is set to 0? Simon

[lwip-users] Hardfault when closing TCP connection External

2014-09-02 Thread ALP-Schoof
Hello, I'm trying to make a server which responds to a client. The server responds to certain commands. Each client is handled in a seperate task. When a client disconnect from the server, without prior notice, the server crashes. I think it has something to do that the receivetask tries to read

Re: [lwip-users] lwIP 1.4.1 server's SYN flood hang, no backlog

2014-09-02 Thread Tomek
Only one TCP_LISTEN_BACKLOG define in opt.h: #ifndef TCP_LISTEN_BACKLOG #define TCP_LISTEN_BACKLOG 0 #endif Editor suggests that at this moment TCP_LISTEN_BACKLOG is not defined, so I am as sure as I can. -- View this message in context:

Re: [lwip-users] lwIP 1.4.1 server's SYN flood hang, no backlog

2014-09-02 Thread Simon Goldschmidt
Tomek wrote: Editor suggests that at this moment TCP_LISTEN_BACKLOG is not defined, so I am as sure as I can. Alright. That and the SYN/ACK/RST sequence you posted suggests that somewhere in your application, the connection is dropped. Maybe because of some kind of resource shortage. I'd try

[lwip-users] Current Time and date

2014-09-02 Thread Dominik Wybrańczyk
Hello, Is there a easy way to get current time and date (year, month, day, hour, minute) from LWIP? Maybe information like this are stored somewhere inside LWIP? Or should I try to get this information from internet (device is connected to internet)? Did anyone tried to obtain information like

Re: [lwip-users] lwIP 1.4.1 server's SYN flood hang, no backlog

2014-09-02 Thread Tomek
I do not exclude possibility that there is something wrong in my code, but when I have tried to debug server's task, I've noticed that lwip_accept is called properly but never returns back (I mean: generally it works, but after some time lwip_accept won't return, so I can't call lwip_read). Is it

Re: [lwip-users] lwIP 1.4.1 server's SYN flood hang, no backlog

2014-09-02 Thread Simon Goldschmidt
Tomek wrote: Is it posibble under any circumstances for lwip_accept to drop incoming connection? Yes: if it ran out of memory. Simon ___ lwip-users mailing list lwip-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/lwip-users

Re: [lwip-users] Current Time and date

2014-09-02 Thread Noam weissman
Hi Simon, Actually no I did not see it. Now after I checked the contribution again I see it. My code is based on code written by Michael Margolis. My code is much simpler. Do you remember that I asked you once about adding a pool call back for server main pcb. I find that this addition will

Re: [lwip-users] lwIP 1.4.1 server's SYN flood hang, no backlog

2014-09-02 Thread Tomek
In such a case, should it return or stay in lwip_accept (as described above)? -- View this message in context: http://lwip.100.n7.nabble.com/lwIP-1-4-1-server-s-SYN-flood-hang-no-backlog-tp23116p23127.html Sent from the lwip-users mailing list archive at Nabble.com.

Re: [lwip-users] Current Time and date

2014-09-02 Thread Martin Persich
Hi Dominik, LwIP has not any time information. You must create SNTP client and use it to synchronize internal CPU timebase (best as phase locked loop). Martin. pers...@transcon.cz - Original Message - From: Dominik Wybrańczyk To: Mailing list for lwIP users Sent: Tuesday,

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Grzegorz Niemirowski
Thanks Noam. I have interrupt priorities set exactly as you have written. The problem must be somewhere else. Best regards, Grzegorz Niemirowski Noam weissman n...@silrd.com napisał(a): Hi, You must check interrupt priorities and your FreeRTOSConfig definition file Here is my interrupt

Re: [lwip-users] TCP IP Port accept Issue- Reg

2014-09-02 Thread Sergio R. Caprile
B Can you share your email id with me? It is helpful for sending the project files. SI'd be surprised if Sergio wanted to receive your project files Simon: as 100.1% of the times, you are right ;^) Bellphin: please search in the list and try to solve the problem yourself. You can post your

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Sergio R. Caprile
Hi guys, I've been online for a couple months on the list and I'm already tired of reading about this; I imagine how you guys are... ;^) Anyway, joke aside, since people don't search the list they will probably won't read the wiki either, is there anything we can do to induce RTOS users to check

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread goldsi...@gmx.de
Krzysztof Wesołowski wrote: Second possible issue is that some old (?) STM32 demo code only processed one packet per interrupt, causing extra packets to be stalled in memory. That's a really good hint. I keep forgetting about that, although I'm using their controllers - but not with the code

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Grzegorz Niemirowski
I can imagine how you can feel but I really avoid posting to any forum or mailing list before investigating a problem by myself. I read about priorities and they are set correctly. I don't know what you mean by single thread but every socket I use is accessed only in the thread where it was

Re: [lwip-users] lwIP hangs after some data transferred

2014-09-02 Thread Noam weissman
Hi, Please check if you free memory properly. It sounds like a memory leak? BR, Noam. -Original Message- From: lwip-users-bounces+noam=silrd@nongnu.org on behalf of Grzegorz Niemirowski Sent: Tue 9/2/2014 8:34 PM To: Mailing list for lwIP users Subject: Re: [lwip-users] lwIP hangs