Skip to content

Commit

Permalink
scaling test bug fix (omec-project#188)
Browse files Browse the repository at this point in the history
Co-authored-by: Badhrinath Pa <badhrinath@opennetworking.org>
  • Loading branch information
2 people authored and badhri85 committed Jan 22, 2021
1 parent c860440 commit c3d5d15
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pfcpiface/bess.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,14 @@ func (b *bess) setInfo(udpConn *net.UDPConn, udpAddr net.Addr, pconn *PFCPConn)
func (b *bess) sendMsgToUPF(method string, pdrs []pdr, fars []far) uint8 {
// create context
var cause uint8 = ie.CauseRequestAccepted
calls := len(pdrs) + len(fars)
if calls == 0 {
return cause
}

ctx, cancel := context.WithTimeout(context.Background(), Timeout)
defer cancel()
done := make(chan bool)
calls := len(pdrs) + len(fars)

log.Println("upf : ", b.client)
log.Println("conn : ", b.conn)
Expand Down

0 comments on commit c3d5d15

Please sign in to comment.