Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disabling Socket Linger in Perl

Status
Not open for further replies.

SaltyDuke

Programmer
Sep 18, 2002
140
IE
Hello

Just a quick question: I'm setting up a socket connection in Perl (duh :)) but i need to disable socket Linger. I've tried googling, textbooks and Perldocs but haven't found anything on this topic.

Does anyone know how to do this?

Thanx a million for any help
TheSaltyDuke

[pipe]
 
hello again

found what i was looking for

no need to post abusive replys to this thread ;-)

bye bye!

TheSaltyDuke

[pipe]
 
Hi,

:) I don't know either - how did you solve it?

Mike

"Deliver me from the bane of civilised life; teddy bear envy."

Want to get great answers to your Tek-Tips questions? Have a look at faq219-2884

 
Hello again

Sorry for the delay in replying. Was very busy in work :-(

I actually skipped around the problem rather that actually finding a direct solution.

Here's what i did: I used another programming language!

But FYI: Some socket server programs are badly written and do not close the connection when they have sent the data to the client. Instead they just send the data and time out, leaving the client in the unenviable position of having the data but being unable to do anything with it because it thinks there's more data on the way from the server.

With socket linger disabled, the client breaks away from the connection once it has received the data, meaning a much shorter data exchange. And time is money!

BTW, please don't flame me for this. I know my analysis is probably all wrong it that more or less describes the situation I found myself in when I started this thread and I couldn't find any solution with Perl (though I'd love to hear one!) so sorry for wasting your time.

Apologies,
TheSaltyDuke

[pipe]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top