mirror of
https://github.com/PentHertz/OpenBTS.git
synced 2026-05-19 07:53:59 +00:00
Revert "fix socket reads to properly pass buffer and timeouts according to new signature"
This reverts commit 0fb9135dab.
This commit is contained in:
parent
0fb9135dab
commit
b0ead346c8
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ void TransceiverManager::clockHandler()
|
|||
char buffer[MAX_UDP_LENGTH];
|
||||
int msgLen;
|
||||
try {
|
||||
msgLen = mClockSocket.read(buffer,sizeof(buffer),gConfig.getNum("TRX.Timeout.Clock")*1000);
|
||||
msgLen = mClockSocket.read(buffer,gConfig.getNum("TRX.Timeout.Clock")*1000);
|
||||
} catch (SocketError) {
|
||||
LOG(ERR) <<"Transceiver Clock Interface read error:"<<strerror(errno);
|
||||
return;
|
||||
|
|
@ -284,7 +284,7 @@ int ::ARFCNManager::sendCommandPacket(const char* command, char* response)
|
|||
|
||||
for (int retry=0; retry<5; retry++) {
|
||||
mControlSocket.write(command);
|
||||
msgLen = mControlSocket.read(response,sizeof(response),1000);
|
||||
msgLen = mControlSocket.read(response,1000);
|
||||
if (msgLen>0) {
|
||||
response[msgLen] = '\0';
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue