Merge lp:~jontai/openvista-gtm-integration/bug526609 into lp:openvista-gtm-integration

Proposed by Jon Tai
Status: Merged
Merged at revision: not available
Proposed branch: lp:~jontai/openvista-gtm-integration/bug526609
Merge into: lp:openvista-gtm-integration
Diff against target: 31 lines (+8/-2)
1 file modified
mumps/HLCSTCP1.m (+8/-2)
To merge this branch: bzr merge lp:~jontai/openvista-gtm-integration/bug526609
Reviewer Review Type Date Requested Status
jeff.apple Approve
Review via email: mp+19991@code.launchpad.net
To post a comment you must log in.
122. By Jon Tai

grab updated version that actually contains the $D(HLMSG) check

Revision history for this message
jeff.apple (jeff-apple) wrote :

Looks very good.
("Because" is misspelled, but that's as trivial as it gets.)

review: Approve
123. By Jon Tai

Fix spelling error, thanks Jeff. I need to figure out how to set up the vim spell checking stuff.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'mumps/HLCSTCP1.m'
--- mumps/HLCSTCP1.m 2009-06-05 20:09:12 +0000
+++ mumps/HLCSTCP1.m 2010-02-23 18:59:13 +0000
@@ -1,4 +1,4 @@
1HLCSTCP1 ;SFIRMFO/RSD MSC/JDA - BI-DIRECTIONAL TCP ;13APR20091HLCSTCP1 ;SFIRMFO/RSD MSC/JDA,JKT - BI-DIRECTIONAL TCP ;23FEB2010
2 ;;1.6;HEALTH LEVEL SEVEN;**19,43,57,64,71,MSC**;JUL 17,19952 ;;1.6;HEALTH LEVEL SEVEN;**19,43,57,64,71,MSC**;JUL 17,1995
3 ;Receiver3 ;Receiver
4 ;connection is initiated by sender and listener accepts connection4 ;connection is initiated by sender and listener accepts connection
@@ -42,7 +42,7 @@
42 Q HLIND142 Q HLIND1
43 ;43 ;
44RDBLK S HLDB=HLDBSIZE-$L(HLX)44RDBLK S HLDB=HLDBSIZE-$L(HLX)
45 U IO D:$D ERROR R X#HLDB:HLDREAD ; MSC/JDA added check against $d45 U IO D:$D ERROR R X#HLDB:HLDREAD ; MSC/JDA added check against $DEVICE
46 ; timedout or error, check ack timeout, clean up46 ; timedout or error, check ack timeout, clean up
47 I '$T,X="",HLX="" S HLACKWT=HLACKWT-HLDREAD D:HLACKWT<0&'HLHDR CLEAN Q47 I '$T,X="",HLX="" S HLACKWT=HLACKWT-HLDREAD D:HLACKWT<0&'HLHDR CLEAN Q
48 ;data stream: <sb>dddd<cr><eb><cr>48 ;data stream: <sb>dddd<cr><eb><cr>
@@ -162,6 +162,12 @@
162 S $ETRAP="D UNWIND^%ZTER"162 S $ETRAP="D UNWIND^%ZTER"
163 I $$EC^%ZOSV["READ"!($$EC^%ZOSV["NOTOPEN")!($$EC^%ZOSV["DEVNOTOPN") D UNWIND^%ZTER Q163 I $$EC^%ZOSV["READ"!($$EC^%ZOSV["NOTOPEN")!($$EC^%ZOSV["DEVNOTOPN") D UNWIND^%ZTER Q
164 I $$EC^%ZOSV["WRITE" D CC("Wr-err") D UNWIND^%ZTER Q164 I $$EC^%ZOSV["WRITE" D CC("Wr-err") D UNWIND^%ZTER Q
165 ;
166 ; If the other side disconnected, but no message was being sent, just go back to listening.
167 ; Because we're checking for a specific $D string, this probably only gets triggered on GT.M.
168 ; Cache is handled by the $$EC^%ZOSV checks above. See <https://launchpad.net/bugs/526609>
169 I $P($D,",",2)="Connection reset by peer",'$D(HLMSG) D UNWIND^%ZTER Q
170 ;
165 S HLCSOUT=1 D ^%ZTER,CC("Error")171 S HLCSOUT=1 D ^%ZTER,CC("Error")
166 D UNWIND^%ZTER172 D UNWIND^%ZTER
167 Q173 Q

Subscribers

People subscribed via source and target branches