+shttpd-general
On Fri, Aug 22, 2008 at 4:55 PM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Hi Sergey,
>
> I'm actually trying to test your great http server under AIX 5.3/5.2/5.1
> (gcc 4.2) but am facing a strange problem.
> Maybe you'll find time to tell me what can be wrong:
>
> Using the shttpd-1.41, I changed the huge function in your example to
> return a file of 32MB as octet-stream.
> When starting the example as root, it works fine (despite the fact that I
> set the option 8080, 8081s it requests the
> same id as if I was requesting a port in range 1-1024), but no problem so
> far.
> -> the file arrives in http and https (great)
>
> When I integrate / call this function (exactly the same) from a thread into
> my program (pthread_create(... &huge, ...
> ), the stream is not anymore sent completely and stops the transfer after
> 16384 Bytes (which is the tcp_sendspace limit
> in network options). This shouldn't happen because when launched from the
> prompt (and not from my threaded program) the
> process works perfectly until the end.
>
> So, ok. As a mean solution I set the network options limit as following:
>
> no -o sb_max=3276800
> no -o tcp_sendspace=3276800
>
> Now it works, but I can't figure out why this limitation takes place only
> from my thread and it is not a good
> solution, I have to agree.
>
> After this when making exactly the same research using SSL, I figured out
> exactly the same behaviour: it works when
> started as example, but not anymore from my threaded application.
>
> The fact is everything works perfectly under other OSes: OSX, Linux,
> Windows which don't have this crazy 16384Bytes
> as limitation.
> But there seems to be something in AIX that the library doesn't seem to
> accept when called from a thread.
>
> Have any idea? I owe'ya anyway already a few beers ;-) & promised: I will
> keep my word, cause I've been fighting too
> long now...
>
> Best regards & thank you very much for your work
>
> chuck
>
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
shttpd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shttpd-general