Changeset 8331 for branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/EvaluationTCPChannel.cs
- Timestamp:
- 07/26/12 09:51:13 (12 years ago)
- Location:
- branches/ScatterSearch (trunk integration)
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ScatterSearch (trunk integration)
- Property svn:ignore
-
old new 21 21 protoc.exe 22 22 _ReSharper.HeuristicLab 3.3 Tests 23 Google.ProtocolBuffers-2.4.1.473.dll
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
branches/ScatterSearch (trunk integration)/HeuristicLab.Problems.ExternalEvaluation/3.3/Drivers/EvaluationTCPChannel.cs
r7259 r8331 88 88 #endregion 89 89 90 90 91 91 92 92 #region IExternalEvaluationChannel Members … … 105 105 byte[] buffer = EncodeDelimited(message); 106 106 socket.Send(buffer); 107 } 108 catch (SocketException) { 109 Close(); 110 throw; 111 } 112 catch (ObjectDisposedException) { 107 } catch (SocketException) { 108 Close(); 109 throw; 110 } catch (ObjectDisposedException) { 113 111 socket = null; 114 112 Close(); … … 138 136 } 139 137 140 public override IMessage Receive(IBuilder builder ) {138 public override IMessage Receive(IBuilder builder, ExtensionRegistry extensions) { 141 139 try { 142 140 byte[] buffer = GetMessageBuffer(); 143 return builder.WeakMergeFrom(ByteString.CopyFrom(buffer)).WeakBuild(); 144 } 145 catch (SocketException) { 146 Close(); 147 throw; 148 } 149 catch (ObjectDisposedException) { 141 return builder.WeakMergeFrom(ByteString.CopyFrom(buffer), extensions).WeakBuild(); 142 } catch (SocketException) { 143 Close(); 144 throw; 145 } catch (ObjectDisposedException) { 150 146 socket = null; 151 147 Close(); … … 186 182 socket.Disconnect(false); 187 183 socket.Close(); 188 } 189 catch { } 184 } catch { } 190 185 socket = null; 191 186 }
Note: See TracChangeset
for help on using the changeset viewer.