httpdlx without harddrive use? - WeOnlyDo Discussion board

httpdlx without harddrive use? (wodHttpDLX)

by tone, Sunday, January 16, 2011, 19:26 (4842 days ago)

Is it possible for you to create a copy of the HttpDLX control without the use of the hard drive? It's clear to me that for multi-thread use and abuse, using a file save for the response log is a terrible way to go. I don't think it's possible with settings to get this sort of functionality out of the current control, but I was just curious if it was possible to get something that simply returns the response object though events and keeps the object in the RAM for easy disposal.

Re: httpdlx without harddrive use?

by woddrazen, Sunday, January 16, 2011, 23:50 (4842 days ago) @ tone

Hi Tone,


Did you maybe try to receive response using HttpResponse object Body Property. You can use Body property instead of saving response inside HttpResponse object Filename Property

More help for Body Property you can find here:
http://www.weonlydo.com/HttpDLX/Help/wodHttpDLX-HttpResponse-Body.html
[code]Debug.Print wodHttp1.Response.Body[/code]
does that help maybe?

Let us know how it goes.


Regards,
Drazen

Re: httpdlx without harddrive use?

by tone, Monday, February 07, 2011, 23:00 (4820 days ago) @ woddrazen

This is the functionality I was referring to.

[code]
Remarks
wodHttpDLX stores all documents on disk, either by a user specified filename, or in a temporary directory.
[/code]


The way you utilize the temporary file to append the response inside your class/code is too much stress on the hard drive when used on many threads. I think it would run much smoother if you simply appended to a string builder inside the class so all the data stayed in RAM and could be cleared instantly when done being used.

This is really the only fault I have found in using HTTPDLX in the past few years.

Re: httpdlx without harddrive use?

by woddrazen, Tuesday, February 08, 2011, 09:33 (4820 days ago) @ tone

Tone,


That's how wodHttpDLX works. If you don't want to store response directly into some file, response will be saved inside temporary file.

Unfortunately we cannot change that any more.


Drazen