Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
SUSE:ALP:Source:Standard:0.1
openslp
openslp.tcpunicast.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openslp.tcpunicast.diff of Package openslp
--- libslp/libslp_network.c.orig 2018-03-01 16:08:38.813669170 +0000 +++ libslp/libslp_network.c 2018-03-05 15:59:56.140618236 +0000 @@ -1426,7 +1426,13 @@ SLPError NetworkUcastRqstRply(SLPHandleI /*In reality, this function just sets things up for NetworkRqstRply to operate*/ if(handle->unicastsock == SLP_INVALID_SOCKET) /*The unicast code will certainly reuse this socket*/ - handle->unicastsock = SLPNetworkCreateDatagram(handle->ucaddr.ss_family); + { + struct timeval timeout; + int maxwait = SLPPropertyAsInteger("net.slp.unicastMaximumWait"); + timeout.tv_sec = maxwait / 1000; + timeout.tv_usec = (maxwait % 1000) * 1000; + handle->unicastsock = SLPNetworkConnectStream(&handle->ucaddr, &timeout); + } if (handle->unicastsock == SLP_INVALID_SOCKET) return SLP_NETWORK_ERROR;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor