This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

onvif partly don't work



Hi everyone:

   I am developing ipnc rdk 3.5 for 814x. I have change boa port to 8080. everything is ok except one.

A  pc-base onvif software is used to test onvif . once the request onvif ->network settings sended,the system corrupted.

Then I tracked the problem is in read_header(). The specific result is "soap_serve_request :GetNetworkDefaultGateway
__tds__GetNetworkDefaultGateway:10.12.11.1 success.
read.c 227 bytes:-1, errno 9  fd:7"  which was generated by code below:

		/*MN stuff to support ssl*/
#ifdef SERVER_SSL
        if(req->ssl == NULL){
#endif /*SERVER_SSL*/
			//fprintf(stderr,"%s,fd %i, pos %i, left %i\n","read before",req->fd, buffer + req->client_stream_pos, buf_bytes_left);
			bytes = read(req->fd, buffer + req->client_stream_pos, buf_bytes_left);
			if (bytes < 0) {

				fprintf(stderr,"%s %i bytes:%i, errno %i  fd:%i\n",__FILE__,__LINE__,bytes,errno,req->fd);
				
            if (errno == EINTR)
                return 1;
            if (errno == EAGAIN || errno == EWOULDBLOCK) /* request blocked */
                return -1;
         
                if (errno == EBADF || errno == EPIPE) {

               	req->status = DEAD;
	               return 0;
               }

    Why is only this settings  wrong?