Re: sockets die after a while - WeOnlyDo Discussion board

Re: sockets die after a while (General questions)

by Klinzter, Thursday, September 12, 2013, 04:54 (3872 days ago) @ wodSupport

the issue is that it does not timeout and or gets disconnected..
all I see when I check the debug file for (dead sockets) is this..

** Connecting to www.site.com on port 80


I dont know if this is the case but for example.. lets say I have 10 sockets running downloading images from random urls..

socket5 goes to page (www.site1.com/image1.jpg) and downloads image and gets server response 200 and response length (1936565) from server.. and finishes downloading image

then again socket5 goes to next url (www.site2.com/image2.jpg) and tries to connect but it doesn't connect correctly or something happens and I see in the disconnect event the same response 200 and length (1936565) from server

so something is wrong with the wrapper not clearing the response body data, length, etc.. before connect, can you confirm this by looking at the source code?

The only way for now to get it to work is by calling this every time before new connection

Set wodHttp1 = New wodHttpDLXCom
Set wodHttp1.Notification = Me


Complete thread: