Giter Site home page Giter Site logo

Comments (9)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
The code works with apache...
if this may help...

Original comment by [email protected] on 12 Mar 2009 at 4:30

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Do you use chunked transfer? Could you attach a *minimal* version of CGI script 
that
reproduces the problem?

Original comment by valenok on 22 Mar 2009 at 11:13

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Intercepted the error.

Stracing the mongoose process i see when i close the remote window a SIGPIPE 
signal.

The problem is that the signal will not be sent to the cgi itself.

And thus the cgi continues writing on STDOUT but not over the net due to the 
problem
that the window was closed and mongoose detaches the cgi from the net 
connection.

Is it possible to let mongoose pass the KILL -PIPE signal or whatever signal 
comes to 
the real cgi instead of throwing it to dev null?

I don-t know if this is the real problem but sending the same PIPE to the script
the cgi works ok.

This works even in Apache.

I-ll attach a simple text file that simulates the persistent.

just put it in a directory where you can exec cgi and from a 
remote browser call the cgi directly, every 5 seconds it changes the 
number of seconds via remote script.

When you clode the window/tab of the browser the mongoose receives a PIPE
signal but mongoose does not send the PIPE to the responsible of the socket.

Tx, Diaolin

Original comment by [email protected] on 23 Mar 2009 at 11:25

Attachments:

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Mongoose now sends SIGTERM signal to the CGI process at the end of every CGI 
session.
The change is http://code.google.com/p/mongoose/source/detail?r=262
It leaves Windows version broken, which will be fixed in subsequent CL.

Original comment by valenok on 27 Mar 2009 at 9:30

  • Changed state: Accepted

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Perfect, straced the process, a little bit slow, it has a 2-3 seconds of 
timeout but
it's OK, it send's
a TERM to the right process(probed with multiple process active).

Many thanks.

This work is SUPER.

Diaolin

Original comment by [email protected] on 27 Mar 2009 at 9:59

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Change http://code.google.com/p/mongoose/source/detail?r=263 cleanes up Window 
version.

As for slowness, this is not Mongoose's fault.
Mongoose cannot determine that client has closed the connection until it tries 
to
write something back to the client. And your CGI script performs writes at 5 
second
intervals, hence the delay. Reduce it in your script, and Mongoose will react 
faster.

Marking as fixed.

Original comment by valenok on 27 Mar 2009 at 10:13

  • Changed state: Fixed

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Ok, no problem
Great work

Original comment by [email protected] on 27 Mar 2009 at 10:35

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
Found another problem with IE any version....
The persistent connection detaches itself but it dies... immediatly.

With apache this does not happen and i don't know how to debug...

Diaolin

Original comment by [email protected] on 3 Jun 2009 at 8:02

from mongoose.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 29, 2024
It might be interesting to see what versions of IE misbehave. There are lots of
problems with 8.0, such as not running Flash. Make this a new bug report, since 
this
one is marked Fixed.

Original comment by [email protected] on 28 Jun 2009 at 4:45

from mongoose.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.