Comments (9)
The code works with apache...
if this may help...
Original comment by [email protected]
on 12 Mar 2009 at 4:30
from mongoose.
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.
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.
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.
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.
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.
Ok, no problem
Great work
Original comment by [email protected]
on 27 Mar 2009 at 10:35
from mongoose.
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.
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)
- Crash when (double) freeing ssl_mutexes HOT 1
- "vsnprintf error" with phpMyAdmin HOT 1
- [1339439568] [error] [client 0.0.0.0] line 3497: cannot bind to 8080: Unknown error HOT 2
- bug+patch: CGI failure on Windows when CGI interpreter is on a different drive HOT 2
- Mongoose Compiler Problem HOT 1
- provide an example to serve a binary HOT 2
- Default mongoose.conf file that comes with mongoose-3.1 is incorrect. HOT 1
- Gzipped content support
- Function "is_valid_uri" misses RFC 2616 absolute URIs
- logic error in read_request() which would produce INVALID failure reports when the remote would send enough data to flood the entire buffer in one pull() [fix included] HOT 7
- Linker error when compiling mongoose with -DNO_SSL_DL
- Creating Linux SOs (shared libs) appropriately HOT 2
- mongoose can't find index.html HOT 2
- Too many issues HOT 1
- Cannot access folders that end with plus (+) character
- Post hangs on data read HOT 1
- Can't seek large mp4 files HOT 2
- Mongoose 3.1 (Windows) Detected by AVG Internet Security 2011 as Threat HOT 1
- Support to run on Android SDK Emulator device HOT 1
- Patch for /mongoose.c -- Correct link errors for unresolved_external_WSA* in Visual Studio 2010
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mongoose.