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)
- Make mongoose example fail (again)
- HTTP Range Request Issue
- Cross compiler for mips platform. error "can't resolve symbol '__sysv_signal'" HOT 3
- Feature req. Serve cgi script generated downloads HOT 1
- Mongoose Fails to start HTTPS under Windows HOT 5
- curl_easy_perform stuck using ssl HOT 1
- Lua with sqlite3 for saving unicode characters HOT 1
- SCRIPT_NAME not usable when cgi is called with path + query string HOT 9
- Random images not displaying in IE8 HOT 3
- mongoose 4.1 won't start on mac os x 10.9.1 with 'listening_ports 80' HOT 1
- Follow symbolic links
- I cannot get mongoose to process a GET from the client when requesting a JSON file. HOT 3
- Still not smart about urls containing cgi script and more elements after script in the url HOT 1
- compiling mogoose with lua HOT 5
- lua cgi with mongoose 4.1 HOT 1
- gpa pha HOT 1
- 301 Redirection HOT 1
- "Failed to start Mongoose" HOT 1
- mingw4.9 printf format for int64 should be also %I64d, not %lld HOT 1
- cookie_authentication example no server response HOT 1
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.