Skip to content

Commit 4655595

Browse files
peter xiepeter xie
authored andcommitted
v1.1.4
1 parent 0ba225f commit 4655595

File tree

18 files changed

+928
-381
lines changed

18 files changed

+928
-381
lines changed

app/imap.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,17 @@ class qtGateImap extends Event.EventEmitter {
800800
this.socket = Net.createConnection({ port: this.port, host: this.IMapConnect.imapServer }, onConnect);
801801
}
802802
else {
803+
// for Uncaught Error: socket hang up
804+
// https://stackoverflow.com/questions/40228074/nodejs-tlssocket-onhangup
805+
//
806+
const catchUncaughtException = err => {
807+
saveLog(`qtGateImap got process uncaught Exception [${err && err.message ? err.messgae : 'err message null '}]`);
808+
this.destroyAll(null);
809+
};
810+
process.once('uncaughtException', catchUncaughtException);
803811
const jj = Tls.connect({ rejectUnauthorized: !this.IMapConnect.imapIgnoreCertificate, host: this.IMapConnect.imapServer, port: this.port }, () => {
812+
// remove Listener when Transport Layer Security connected success!
813+
process.removeListener('uncaughtException', catchUncaughtException);
804814
jj.once('error', err => {
805815
saveLog(`jj.once ( 'error' ) listenFolder[${this.listenFolder}] writeFolder [${this.writeFolder}]`);
806816
this.destroyAll(err);

app/imap.ts

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,10 +902,28 @@ export class qtGateImap extends Event.EventEmitter {
902902

903903
}
904904

905+
905906
if ( ! this.IMapConnect.imapSsl ) {
906907
this.socket = Net.createConnection ({ port: this.port, host: this.IMapConnect.imapServer }, onConnect )
907908
} else {
909+
910+
911+
912+
// for Uncaught Error: socket hang up
913+
// https://stackoverflow.com/questions/40228074/nodejs-tlssocket-onhangup
914+
//
915+
const catchUncaughtException = err => {
916+
saveLog (`qtGateImap got process uncaught Exception [${ err && err.message ? err.messgae : 'err message null '}]`)
917+
this.destroyAll ( null )
918+
}
919+
920+
process.once ( 'uncaughtException', catchUncaughtException )
921+
908922
const jj = Tls.connect ({ rejectUnauthorized: ! this.IMapConnect.imapIgnoreCertificate, host: this.IMapConnect.imapServer, port: this.port }, () => {
923+
924+
// remove Listener when Transport Layer Security connected success!
925+
process.removeListener ( 'uncaughtException', catchUncaughtException )
926+
909927
jj.once ( 'error', err => {
910928
saveLog (`jj.once ( 'error' ) listenFolder[${ this.listenFolder }] writeFolder [${ this.writeFolder }]`)
911929
this.destroyAll ( err )
@@ -919,6 +937,8 @@ export class qtGateImap extends Event.EventEmitter {
919937
this.socket = jj
920938
clearTimeout ( this.connectTimeOut )
921939
})
940+
941+
922942

923943
jj.pipe ( this.imapStream ).pipe ( jj )
924944
}

app/public/css/pages.css

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -439,9 +439,6 @@ h1>.badge, h2>.badge, h3>.badge, h4>.badge,h5>.badge,h6>.badge {
439439
width: 100%;
440440
z-index: 98;
441441
}
442-
.removeButton{
443-
margin-left: 97%!important;
444-
}
445442

446443
.languageItemSpan {
447444
font-size: small!important;
@@ -737,4 +734,17 @@ h1>.badge, h2>.badge, h3>.badge, h4>.badge,h5>.badge,h6>.badge {
737734
display: block!important;
738735
height: 25px!important;
739736
width: 25px!important;
737+
}
738+
739+
.priceFont {
740+
font-size: small;
741+
font-style: italic;
742+
font-weight: lighter;
743+
}
744+
745+
.hideCardImage {
746+
opacity: 0.1
747+
}
748+
.showCardImage {
749+
opacity: 1
740750
}

app/public/images/amex.svg

Lines changed: 11 additions & 0 deletions
Loading

app/public/images/diners.svg

Lines changed: 11 additions & 0 deletions
Loading

app/public/images/discover.svg

Lines changed: 12 additions & 0 deletions
Loading

app/public/images/jcb.svg

Lines changed: 15 additions & 0 deletions
Loading

app/public/images/mastercard.svg

Lines changed: 12 additions & 0 deletions
Loading

app/public/images/visa.svg

Lines changed: 11 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)