Re: Dswifi works but fails after 7 attempts.
Posted: Sun Feb 05, 2012 8:56 pm
Sorry for the delay. I had a very rough week at the office. 
I've looked into your suggestions.
- forceclosesocket();
According me that one doesn't exits.
- shutdown(my_socket, SHUT_RD)
- shutdown(my_socket, SHUT_WR)
- shutdown(my_socket, SHUT_RDWR)
None worked for me.
I started working on a solution to reuse the connection and i think i got i working. I can make dozens requests that are all accepted. I made a connection and let it sit for 45 minutes and after that time i succesfully send in another request. I now have to make sure that the the server side connection is release when the DS is shutdown but i will figure out something for that. I've got some ideas already.
This is naturally just a workaround in my case to the fact that the socket isn't closed/release and hopefully will be solved in a future release.

I've looked into your suggestions.
- forceclosesocket();
According me that one doesn't exits.

- shutdown(my_socket, SHUT_RD)
- shutdown(my_socket, SHUT_WR)
- shutdown(my_socket, SHUT_RDWR)
None worked for me.
I started working on a solution to reuse the connection and i think i got i working. I can make dozens requests that are all accepted. I made a connection and let it sit for 45 minutes and after that time i succesfully send in another request. I now have to make sure that the the server side connection is release when the DS is shutdown but i will figure out something for that. I've got some ideas already.
This is naturally just a workaround in my case to the fact that the socket isn't closed/release and hopefully will be solved in a future release.