Skip to content

Commit e66edd2

Browse files
Joanna Jofacebook-github-bot
Joanna Jo
authored andcommitted
Remove sendPriority() in HTTPSession/HQSession
Summary: Removing HTTP 2 priority API `sendPriority()` in `HTTPSession`/`HQSession`. Reviewed By: hanidamlaj Differential Revision: D72091448 fbshipit-source-id: 1b89e2fb98d3115d0ab604fa7b11cb31fb629c5f
1 parent 2a88939 commit e66edd2

File tree

7 files changed

+0
-402
lines changed

7 files changed

+0
-402
lines changed

third-party/proxygen/src/proxygen/httpclient/samples/pricli/CMakeLists.txt

Lines changed: 0 additions & 11 deletions
This file was deleted.

third-party/proxygen/src/proxygen/httpclient/samples/pricli/PriCli.cpp

Lines changed: 0 additions & 282 deletions
This file was deleted.

third-party/proxygen/src/proxygen/lib/http/session/HQSession.h

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -377,24 +377,6 @@ class HQSession
377377
return sock_->setKnob(knobSpace, knobId, std::move(knobBlob));
378378
}
379379

380-
/**
381-
* Sends a priority message on this session. If the underlying protocol
382-
* doesn't support priority, this is a no-op. A new stream identifier will
383-
* be selected and returned.
384-
*/
385-
HTTPCodec::StreamID sendPriority(http2::PriorityUpdate /*pri*/) override {
386-
return 0;
387-
}
388-
389-
/**
390-
* As above, but updates an existing priority node. Do not use for
391-
* real nodes, prefer HTTPTransaction::changePriority.
392-
*/
393-
size_t sendPriority(HTTPCodec::StreamID /*id*/,
394-
http2::PriorityUpdate /*pri*/) override {
395-
return 0;
396-
}
397-
398380
size_t sendPriority(HTTPCodec::StreamID id, HTTPPriority pri);
399381
size_t sendPushPriority(hq::PushId pushId, HTTPPriority pri);
400382

third-party/proxygen/src/proxygen/lib/http/session/HTTPSession.cpp

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -2698,36 +2698,6 @@ void HTTPSession::PingProber::onPingReply(uint64_t pingVal) {
26982698
refreshTimeout(/*onIngress=*/false);
26992699
}
27002700

2701-
HTTPCodec::StreamID HTTPSession::sendPriority(http2::PriorityUpdate pri) {
2702-
if (!codec_->supportsParallelRequests()) {
2703-
// For HTTP/1.1, don't call createStream()
2704-
return 0;
2705-
}
2706-
auto id = codec_->createStream();
2707-
sendPriority(id, pri);
2708-
return id;
2709-
}
2710-
2711-
size_t HTTPSession::sendPriority(HTTPCodec::StreamID id,
2712-
http2::PriorityUpdate pri) {
2713-
auto res = sendPriorityImpl(id, pri);
2714-
txnEgressQueue_.addOrUpdatePriorityNode(id, pri);
2715-
return res;
2716-
}
2717-
2718-
size_t HTTPSession::sendPriorityImpl(HTTPCodec::StreamID id,
2719-
http2::PriorityUpdate pri) {
2720-
CHECK_NE(id, 0);
2721-
const size_t bytes = codec_->generatePriority(
2722-
writeBuf_,
2723-
id,
2724-
std::make_tuple(pri.streamDependency, pri.exclusive, pri.weight));
2725-
if (bytes) {
2726-
scheduleWrite();
2727-
}
2728-
return bytes;
2729-
}
2730-
27312701
HTTPTransaction* HTTPSession::findTransaction(HTTPCodec::StreamID streamID) {
27322702
if (lastTxn_ && streamID == lastTxn_->getID()) {
27332703
return lastTxn_;

third-party/proxygen/src/proxygen/lib/http/session/HTTPSession.h

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -209,20 +209,6 @@ class HTTPSession
209209
*/
210210
size_t sendPing() override;
211211

212-
/**
213-
* Sends a priority message on this session. If the underlying protocol
214-
* doesn't support priority, this is a no-op. A new stream identifier will
215-
* be selected and returned.
216-
*/
217-
HTTPCodec::StreamID sendPriority(http2::PriorityUpdate pri) override;
218-
219-
/**
220-
* As above, but updates an existing priority node. Do not use for
221-
* real nodes, prefer HTTPTransaction::changePriority.
222-
*/
223-
size_t sendPriority(HTTPCodec::StreamID id,
224-
http2::PriorityUpdate pri) override;
225-
226212
/**
227213
* Send a CERTIFICATE_REQUEST frame. If the underlying protocol doesn't
228214
* support secondary authentication, this is a no-op and 0 is returned.
@@ -408,14 +394,6 @@ class HTTPSession
408394

409395
size_t getCodecSendWindowSize() const;
410396

411-
/**
412-
* Sends a priority message on this session. If the underlying protocol
413-
* doesn't support priority, this is a no-op. Returns the number of bytes
414-
* written on the transport
415-
*/
416-
size_t sendPriorityImpl(HTTPCodec::StreamID streamID,
417-
http2::PriorityUpdate pri);
418-
419397
bool onNativeProtocolUpgradeImpl(HTTPCodec::StreamID txn,
420398
std::unique_ptr<HTTPCodec> codec,
421399
const std::string& protocolString);

0 commit comments

Comments
 (0)