[En-Nut-Discussion] Http server

Cosmin Buhu towmeup at as.ro
Thu Feb 19 06:43:25 CET 2004


    I have both read and write timeouts in my application from start.
    In the httpd example makes no difference. Most times locks after
"[x] Connected 2xxxx", other times with "Creating socket failed",
after just reported 24xxx bytes free.
Can be a problem with the SRAM ?
    I'll try today with -DNUTDEBUG but I'm afraid the findings will be
null.
Thanks,
Cosmin


----- Original Message ----- 
From: "Oliver Schulz" <olischulz at web.de>
To: "'Ethernut User Chat (English)'" <en-nut-discussion at egnite.de>
Sent: Thursday, February 19, 2004 12:41 AM
Subject: Re: [En-Nut-Discussion] Http server


Hi Cosmin,

Since I cannot yet reproduce this lockup with my system, please do me a
favour. Add the following lines in app/httpd/httpserv.c in function
THREAD(service,...) just before the call to NutTcpAccept:

      u_long ul;
      ul = 3000;
      NutTcpSetSockOpt (sock, SO_SNDTIMEO, &ul, sizeof(ul));

...and test again.

Cheers,
Oliver.

> -----Ursprüngliche Nachricht-----
> Von: en-nut-discussion-bounces at egnite.de
> [mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von Cosmin Buhu
> Gesendet: Mittwoch, 18. Februar 2004 13:46
> An: Ethernut User Chat (English)
> Betreff: Re: [En-Nut-Discussion] Http server
>
>
>
>     Yes it does happen with the socket cgi and other too, static
> or cgi. And yes, a reset is the only cure.
> To be sure I made a fresh reinstall of 332. The same. As you
> said from time to time after a few secs it recovers but also from
> time to time doesn't, most of them after acking the packet with get.
>     So, board 1.3F, sw 332, avr-gcc from winavr-20030913.
>     10. network class, 255.0.0.0 mask, also tried with
> ethernut cabled with
> one PC only.
>     The things happen with IE, Opera, windows, linux.
>
> Cosmin
>
>
>
> ----- Original Message -----
> From: "Harald Kipp" <harald.kipp at egnite.de>
> To: "Ethernut User Chat (English)" <en-nut-discussion at egnite.de>
> Sent: Wednesday, February 18, 2004 1:48 PM
> Subject: Re: [En-Nut-Discussion] Http server
>
>
> > Cosmin,
> >
> > Even if you don't use malloc or NutHeapAlloc directly,
> > it may be used indirectly, like fopen (which returns
> > a NULL pointer in that case) etc.
> >
> > The http sample works here as designed. After some
> > successive requests, the connect hangs for some seconds
> > and continues as soon as Ethernut releases the
> > previously allocated sockets. I'm using Mozilla.
> >
> > Anyone else using Opera? I can hardly believe, that
> > this browser causes the problem...but who knows...
> >
> > It may hang for a few seconds. But it should continue
> > and should _always_ respond to pings. As far as I
> > unterstood, you need to reset the board after the
> > problem appears, right?
> >
> > Does it happen with the original httpd sample on
> > all pages? I'm specially interested in the socket
> > list. Can you try this, please?
> >
> > Can you please specify, what board you are using?
> > And what compiler version? I'll try to reproduce it
> > here.
> >
> > Regards,
> > Harald
> >
> > _______________________________________________
> > En-Nut-Discussion mailing list
> > En-Nut-Discussion at egnite.de
> > http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> >
>
>
> _______________________________________________
> En-Nut-Discussion mailing list
> En-Nut-Discussion at egnite.de
> http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion

_______________________________________________
En-Nut-Discussion mailing list
En-Nut-Discussion at egnite.de
http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion





More information about the En-Nut-Discussion mailing list