Plain Socket pool and reuse
843811Apr 12 2002 — edited Aug 24 2003I am trying to create a pool of sockets and reuse them without having to recreate everytime. But I have problems re-using the sockets. The first read and recv are fine but when I re-use the socket, a null-pointer is thrown while invoking getOutputStream() on the socket object(though the socket does not qualify for null condition. I am zapped. After every read and recv, I am closing the streams.
Please let me know if there is something that I am missing here. If reqd I can cut paste the code here.
Thanks for your help
KR