Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Re: Re: Re: HTTP server guidance

by DaveH (Monk)
on Nov 30, 2003 at 21:11 UTC ( [id://311095]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: Re: HTTP server guidance
in thread HTTP server guidance

What happens if the connection times out? The server closes it and is happy, or does the backend server have any problems with it?

No, thinking about it, the backend system should just happily close the connection. There should be no negative consequences of closing the connection beyond the fact that the next request will have to wait for it to re-establish (but we are talking about LAN-connected systems here, so I don't think that latency should be a big problem).

And, is there any kind of "ping" message the perl wrapper could send to test if the connection is still alive?

Yeah, you can send a "K0006" keep-alive message, in which case the server should respond likewise with a "K0006" response. This could serve as a "ping" I suppose. However, I may as well just see if the socket is dead, as you show in your example.

I'm busy trawling throught the mod_perl API docs again at the moment... hopefully I'll be making a start on this soon. Thanks again for your support.

Cheers,

-- Dave :-)


$q=[split+qr,,,q,~swmi,.$,],+s.$.Em~w^,,.,s,.,$&&$$q[pos],eg,print

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://311095]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-20 02:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found