realbasic-nug
[Top] [All Lists]

DataAvailable doesn't fire often enough

To: Users Group Network REALbasic <realbasic-nug at lists dot realsoftware dot com>
Subject: DataAvailable doesn't fire often enough
From: Stefan Pantke <seaside dot ki at mac dot com>
Date: Thu, 1 Sep 2005 02:48:48 +0200
Delivered-to: realbasic-nug at lists dot realsoftware dot com
As part of a web server, a TCPSocket implements the DataAvailable event.
In general this works fine.

From time to time, The DataAvailable event doesn't fire. If I add this

     While( 0 < Me.BytesAvailable() )
          <process once again>
     Wend

to the DataAvailabe handler, things work just fine.

Thus, these questions come to mind:

- When does DataAvailable really fires?
- If new data arrives while DataAvailable is currently executing, can it
overrun another DataAvailable event or will - when the current DataAvailable
event finishes - another DataAvailble fire?

This problem seems to appear only iff. the system processes POST content
of a web page.

System: RB 5.5.5 on OS X. TCPSocket managed by a ServerSocket.
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

<Prev in Thread] Current Thread [Next in Thread>