1. webmining and tcp4u
I discovered something, but i know not what, anyone have any ideas?
global function ReadServer()
sequence buffer
buffer = ""
sock_receive = ""
while tcp4u_is_data_avail(sock) do
sock_receive = tcp4u_receive(sock,1,0)
if sock_receive[1] > 0 then buffer &= sock_receive[2] end if
end while
return buffer
end function -- readserver
if i use this line:
sock_receive = tcp4u_receive(sock,1000,0)
and return sock_recieve[2] (if sock_recieve[1] is good), it will occasionally
overrun the tcp4u buffer, returning bits of the last page, and re-arranged bits
of the new page. Or not returning the whole page, even with the calling loop
below:
TheWebPage &= ReadServer()
-- sleep(1)
end while
unless i un-comment the sleep(1). I know the buffer is being overrun in tcp4u,
because both ServerNeedsAttention() and not
middle of the current page. I puts() the page to the harddrive for forensics,
which is how i know what TheWebPage is being set to after these crashes.
Other than keep doing what i fudged up to keep working, anyone have any
ideas?
Kat
2. Re: webmining and tcp4u
- Posted by a.tammer at hetnet.nl
Jun 08, 2002
Hi Kat,
If you will give me an synopsis of what you intend to do,
maybe I'll be able to see, how I could help you.
The more exact description the problem, the faster
I come up with solutions. Ask Rolf, he knows.
WRAFF
a@t
3. Re: webmining and tcp4u
On Sunday 09 June 2002 9:30 am, Kat wrote:
=2E.<snip>..
> Yeas, i was told last night that the reason i can't get any help that i
> need, can't get a date, can't have friends, is that no one takes me
> seriously. Last night i offered $300 to anyone willing to go see a movi=
e
> with me, no one accepted.
>
> Kat
=2E.<snip>..
I'll go. :)
orkim