From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Vimal Upreti Newsgroups: gmane.os.tru64.managers Subject: Messages accumulating using send() function from the socket Date: Tue, 29 Apr 2003 18:01:31 +0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <9CC0EAD054A9324E960A5868EDCB7E6601ED01E0@EXSERVER01.ohi_net.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1051624950 22595 80.91.224.249 (29 Apr 2003 14:02:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 29 Apr 2003 14:02:30 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Tue Apr 29 16:02:28 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 19AVfF-0005jC-00 for ; Tue, 29 Apr 2003 16:00:57 +0200 Original-Received: (qmail 5631 invoked by uid 5); 29 Apr 2003 14:01:52 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5622 invoked by uid 49493); 29 Apr 2003 14:01:51 -0000 Original-Received: from Vimal@ohitelecom.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(1.8/5.0):. Processed in 0.478247 secs); 29 Apr 2003 14:01:51 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 29 Apr 2003 14:01:51 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HE3001GQYZ0HE@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 29 Apr 2003 10:01:50 -0400 (EDT) Original-Received: from [212.72.22.90] by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with SMTP id <0HE3002HTYYMA2@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Tue, 29 Apr 2003 10:01:38 -0400 (EDT) Original-Received: from no.name.available by [212.72.22.90] via smtpd (for emroute1.cind.ornl.gov [160.91.4.119]) with SMTP; Tue, 29 Apr 2003 18:03:50 +0400 Original-To: tru64-unix-managers@ornl.gov X-MIMEOLE: Produced By Microsoft Exchange V6.0.5762.3 Thread-Topic: Messages accumulating using send() function from the socket Thread-Index: AcMOV9Uz+/UVIb2aR7ijkgBcY6KWmw== content-class: urn:content-classes:message X-MS-Has-Attach: X-MS-TNEF-Correlator: Xref: main.gmane.org gmane.os.tru64.managers:4085 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:4085 Hi all, We are facing problem of message accumulating in the message queue in Trading Application of Stock Market, using Sockets. The same application used to work fine with NCR Unix.=20 =20 The client side was developed using Delphi6, in which sockets are used to connect to the message distributor (Application built on ancii c) and this GUI is also connected directly to the database for loading information and inquiring on information using Net9 connectivity. The database side is running on Oracle 9.1 with advanced queuing system since the advance queuing system is used for communication with the trading server (Application built using ancii c) The trading server is connected to the client side through the advanced queuing system of oracle and to the message distributor through sockets. The Message Distributor is connected to the clients via sockets and connected to the trading server via sockets as well. To make it more clearer, following is the movement of an order entered to the market: First the order (Sell or Buy) will be entered through "Order Entry Screen" in the GUI. Second the order will be queued in a queue called "Receive Queue" using Advanced Queuing System of oracle. Third the trading server will read this order from the "Receive Queue", then it will be processed, and the result of the processing will be sent to the message distributor using the sockets, and the result will be sent to the "DB Queue" for database processing as well. Fourth the DB server will read the DB Queue and will update the database accordingly. Fifth the message distributor will distribute the message among the registered and connected users using the sockets. Sixth the client side will receive the message from the message distributor and the client side will be updated accordingly. Summary of the problem:=20 when the trading server completes processing the order it sends a message to the message distributor using send() function from the sockets interface but unfortunately, the message is not sent directly to the message distributor, instead, the sockets accumulates more that 3 to 5 messages then, the message distributor will receive them, both processes (i.e. trading server and message distributor) are running on the same alpha server. One day, the number of accumulated messages reached around 30 messages before they have been sent to the message distributor. Is it bcos of some Tru64 UNIX parameters need to be tuned or some layered products to be installed on the Unix side? Thanks & regards Vimal=20