Skip to content
This repository
Browse code

move pv init to dcopv.bdy, rseq for last send seq

  • Loading branch information...
commit 70a6b5776916527f27b130c75ca12767eac22278 1 parent 50455ad
kaven276 authored
1  lib/ext_hub.js
@@ -91,6 +91,7 @@ var server = net.createServer(function(oraSock){
91 91 }
92 92
93 93 function onOracleRequest(oraReq){
  94 + rec.oraSeq++;
94 95 var proxyID = oraReq.readInt32BE(4)
95 96 , wpw = wpSocks[proxyID]
96 97 ;
17 oracle/psp/dcopv.bdy
... ... @@ -0,0 +1,17 @@
  1 +create or replace package body dcopv is
  2 +begin
  3 + dbms_lob.createtemporary(msg, cache => true, dur => dbms_lob.session);
  4 + chksz := dbms_lob.getchunksize(msg);
  5 + pos_head := 0;
  6 + pos_tail := 12;
  7 + rseq := 0;
  8 + rseq2 := 0;
  9 + onway := 0;
  10 + onbuf := 0;
  11 + dbms_alert.register('Noradle-DCO-EXTHUB-QUIT');
  12 + if host is not null and port is not null then
  13 + dbms_alert.signal('Noradle-DCO-EXTHUB-QUIT', host || ':' || port);
  14 + end if;
  15 + commit;
  16 +end dcopv;
  17 +/
19 oracle/psp/k_ext_call.bdy
@@ -6,19 +6,6 @@ create or replace package body k_ext_call is
6 6 return utl_raw.cast_from_binary_integer(i);
7 7 end;
8 8
9   - procedure init is
10   - begin
11   - dbms_lob.createtemporary(dcopv.msg, cache => true, dur => dbms_lob.session);
12   - dcopv.chksz := dbms_lob.getchunksize(dcopv.msg);
13   - dcopv.pos_head := 0;
14   - dcopv.pos_tail := 12;
15   - dcopv.rseq := 1;
16   - dcopv.rseq2 := 1;
17   - dcopv.onway := 0;
18   - dcopv.onbuf := 0;
19   - dbms_alert.register('Noradle-DCO-EXTHUB-QUIT');
20   - end;
21   -
22 9 procedure write(content in out nocopy raw) is
23 10 v_len pls_integer := utl_raw.length(content);
24 11 begin
@@ -184,9 +171,9 @@ create or replace package body k_ext_call is
184 171 if not buffered then
185 172 flush;
186 173 end if;
187   - dcopv.rsps(dcopv.rseq) := null;
188 174 dcopv.rseq := dcopv.rseq + 1;
189   - return dcopv.rseq - 1;
  175 + dcopv.rsps(dcopv.rseq) := null;
  176 + return dcopv.rseq;
190 177 end;
191 178
192 179 function send_request
@@ -279,7 +266,5 @@ create or replace package body k_ext_call is
279 266 return read_response(send_request(proxy_id, false), req_blb, timeout);
280 267 end;
281 268
282   -begin
283   - init;
284 269 end k_ext_call;
285 270 /

0 comments on commit 70a6b57

Please sign in to comment.
Something went wrong with that request. Please try again.