0
이것은 처음으로 소켓을 망치는 것이고 초보자를위한 많은 인용문을 읽습니다.php-smpp 라이브러리가 작동하지 않고 2 ~ 3 개의 SMS 후에 실패합니다
그래서 문제는 내가 잘 작동 SMS
를 보내는하지만 2-3 SMS 전송을 제공 한 후 php smpp library을 사용하고있다
Warning: stream_socket_sendto() [function.stream-socket-sendto]: An existing connection was forcibly closed by the remote host'
, 과 내가 아파치을 restart` 할 필요가 다시 작동하도록 경고 다음 실패 .
다음
예외public function write($buf) {
$null = null;
$write = array($this->handle_);
// keep writing until all the data has been written
while (strlen($buf) > 0) {
// wait for stream to become available for writing
$writable = @stream_select($null, $write, $null, $this->sendTimeoutSec_, $this->sendTimeoutUsec_);
if ($writable > 0) {
// write buffer to stream
$written = stream_socket_sendto($this->handle_, $buf);
if ($written === -1 || $written === false) {
throw new TTransportException('TSocket: Could not write '.$written.' bytes '.
$this->host_.':'.$this->port_);
}
// determine how much of the buffer is left to write
$buf = substr($buf, $written);
} else if ($writable === 0) {
throw new TTransportException('TSocket: timed out writing '.strlen($buf).' bytes from '.
$this->host_.':'.$this->port_);
} else {
throw new TTransportException('TSocket: Could not write '.strlen($buf).' bytes '.
$this->host_.':'.$this->port_);
}
}
}
을 던지는 쓰기 기능입니다 누구든지 넣을 수 있습니다하십시오 어떤 빛