Giter Club home page Giter Club logo

pan-lua's People

Contributors

benthor avatar

Stargazers

 avatar  avatar

Watchers

 avatar

pan-lua's Issues

fill in empty placeholder functions for quic tracer

The quic tracer that calls into Lua is not fully implemented yet. It should be very straight forward to complete the missing lines.

pan-lua/extra/stats.go

Lines 46 to 92 in aca0127

func (amct *AutoMultiConnectionTracer) NegotiatedVersion(chosen logging.VersionNumber, clientVersions, serverVersions []logging.VersionNumber) {
}
func (amct *AutoMultiConnectionTracer) ClosedConnection(error) {}
func (amct *AutoMultiConnectionTracer) SentTransportParameters(*logging.TransportParameters) {}
func (amct *AutoMultiConnectionTracer) ReceivedTransportParameters(*logging.TransportParameters) {}
func (amct *AutoMultiConnectionTracer) RestoredTransportParameters(parameters *logging.TransportParameters) {
}
func (amct *AutoMultiConnectionTracer) SentLongHeaderPacket(extendedHeader *logging.ExtendedHeader, count logging.ByteCount, ecn logging.ECN, ackframe *logging.AckFrame, frames []logging.Frame) {
amct.mct.SentPacket(amct.local, amct.remote, extendedHeader, count, ackframe, frames)
}
func (amct *AutoMultiConnectionTracer) SentShortHeaderPacket(*logging.ShortHeader, logging.ByteCount, logging.ECN, *logging.AckFrame, []logging.Frame) {
}
func (amct *AutoMultiConnectionTracer) ReceivedVersionNegotiationPacket(dest, src logging.ArbitraryLenConnectionID, _ []logging.VersionNumber) {
}
func (amct *AutoMultiConnectionTracer) ReceivedRetry(*logging.Header) {}
func (amct *AutoMultiConnectionTracer) ReceivedLongHeaderPacket(*logging.ExtendedHeader, logging.ByteCount, logging.ECN, []logging.Frame) {
}
func (amct *AutoMultiConnectionTracer) ReceivedShortHeaderPacket(*logging.ShortHeader, logging.ByteCount, logging.ECN, []logging.Frame) {
}
func (amct *AutoMultiConnectionTracer) BufferedPacket(logging.PacketType, logging.ByteCount) {}
func (amct *AutoMultiConnectionTracer) DroppedPacket(logging.PacketType, logging.PacketNumber, logging.ByteCount, logging.PacketDropReason) {
}
func (amct *AutoMultiConnectionTracer) UpdatedMetrics(rttStats *logging.RTTStats, cwnd, bytesInFlight logging.ByteCount, packetsInFlight int) {
amct.mct.UpdatedMetrics(amct.local, amct.remote, NewRTTStats(rttStats), cwnd, bytesInFlight, packetsInFlight)
}
func (amct *AutoMultiConnectionTracer) AcknowledgedPacket(logging.EncryptionLevel, logging.PacketNumber) {
}
func (amct *AutoMultiConnectionTracer) LostPacket(logging.EncryptionLevel, logging.PacketNumber, logging.PacketLossReason) {
}
func (amct *AutoMultiConnectionTracer) UpdatedCongestionState(logging.CongestionState) {}
func (amct *AutoMultiConnectionTracer) UpdatedPTOCount(value uint32) {}
func (amct *AutoMultiConnectionTracer) UpdatedKeyFromTLS(logging.EncryptionLevel, logging.Perspective) {
}
func (amct *AutoMultiConnectionTracer) UpdatedKey(generation logging.KeyPhase, remote bool) {}
func (amct *AutoMultiConnectionTracer) DroppedEncryptionLevel(logging.EncryptionLevel) {}
func (amct *AutoMultiConnectionTracer) DroppedKey(generation logging.KeyPhase) {}
func (amct *AutoMultiConnectionTracer) SetLossTimer(logging.TimerType, logging.EncryptionLevel, time.Time) {
}
func (amct *AutoMultiConnectionTracer) LossTimerExpired(logging.TimerType, logging.EncryptionLevel) {}
func (amct *AutoMultiConnectionTracer) LossTimerCanceled() {}
func (amct *AutoMultiConnectionTracer) ECNStateUpdated(state logging.ECNState, trigger logging.ECNStateTrigger) {
}
func (amct *AutoMultiConnectionTracer) ChoseALPN(protocol string) {}
func (amct *AutoMultiConnectionTracer) Close() {}
func (amct *AutoMultiConnectionTracer) Debug(name, msg string) {}

As it currently stands, only

  • StartedConnection
  • UpdatedMetrics
  • SentLongHeaderPacket

are actually implemented.

Note that there is also a performance tradeoff here. Functions that remain un-implemented will also not get called as part of a traced quic connection, which may result in better performance. Perhaps there is a way to dynamically decide which callbacks to include and which to leave out, but this may require some refactoring

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.