Skip to content

Commit

Permalink
Upgrade libthrift java library from 0.12.0 to 0.13.0
Browse files Browse the repository at this point in the history
  • Loading branch information
zomen2 committed Apr 25, 2021
1 parent e39c213 commit ea9298f
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 11 deletions.
Binary file added lib/java/httpclient-4.5.6.jar
Binary file not shown.
Binary file added lib/java/httpcore-4.4.10.jar
Binary file not shown.
Binary file removed lib/java/libthrift-0.12.0.jar
Binary file not shown.
Binary file added lib/java/libthrift-0.13.0.jar
Binary file not shown.
28 changes: 17 additions & 11 deletions plugins/search/common/src/cc/search/common/ipc/IPCProcessor.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,17 +84,18 @@ public void serve() {
return;
}

boolean cont = _continueServing;
while (cont) {
try {
cont = _continueServing && _processor.process(_inProtocol, _outProtocol);
} catch (TTransportException ex) {
_log.log(Level.SEVERE, "Client died!", ex);
return;
} catch (TException ex) {
_log.log(Level.SEVERE, "Something went wrong!", ex);
try {
while (_continueServing) {
_processor.process(_inProtocol, _outProtocol);
}
} catch (TTransportException ex) {
_log.log(Level.SEVERE, "Client died!", ex);
} catch (TException ex) {
_log.log(Level.SEVERE, "Something went wrong!", ex);
} catch (Exception x) {
_log.log(Level.SEVERE, "Error occurred during processing of message.", x);
}
close();
}

/**
Expand All @@ -117,7 +118,12 @@ private String getFileNameFromFd(int fd_) {

@Override
public void close() {
_inTransport.close();
_outTransport.close();
stopServe();
if (_inTransport != null) {
_inTransport.close();
}
if (_outTransport != null) {
_outTransport.close();
}
}
}

0 comments on commit ea9298f

Please sign in to comment.