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

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

Sorry for all the merge requests -- I wanted to tackle the specific issues we were encountered separately, even though the fix ends up all being in the same routine.

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'mumps/HLCSTCP1.m'
2--- mumps/HLCSTCP1.m 2010-02-24 08:56:22 +0000
3+++ mumps/HLCSTCP1.m 2010-02-24 08:56:22 +0000
4@@ -42,9 +42,15 @@
5 Q HLIND1
6 ;
7 RDBLK S HLDB=HLDBSIZE-$L(HLX)
8- U IO D:$D ERROR R X#HLDB:HLDREAD ; MSC/JDA added check against $DEVICE
9+ ; MSC/JDA added check against $DEVICE
10+ U IO D:$D ERROR
11+ ; MSC/JKT set DELIMITER flag on GT.M to ensure we return from READ command as soon as we get a complete HL7 message
12+ I $G(^%ZOSF("OS"))["GT.M" U IO:(DELIMITER=HLRS_HLDEND_HLRS)
13+ N T R X#HLDB:HLDREAD S T=$T
14+ ; MSC/JKT $KEY=delimiter if READ terminated on delimiter; remove DELIMITER flag after READ so we don't affect writes
15+ I $G(^%ZOSF("OS"))["GT.M" S X=X_$KEY U IO:(NODELIMITER)
16 ; timedout or error, check ack timeout, clean up
17- I '$T,X="",HLX="" S HLACKWT=HLACKWT-HLDREAD D:HLACKWT<0&'HLHDR CLEAN Q
18+ I 'T,X="",HLX="" S HLACKWT=HLACKWT-HLDREAD D:HLACKWT<0&'HLHDR CLEAN Q
19 ;data stream: <sb>dddd<cr><eb><cr>
20 ;add incoming line to what wasn't processed in last read
21 S HLX=$G(HLX)_X

Subscribers

People subscribed via source and target branches