How to increase Socket disconnection time?

Hi.
I want to increase the socket disconnection time. Right now its disconnect with in 1 sec
Thanks

which operation you are doing times out in 1 second?