We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49fd5c9 commit 70cb1f9Copy full SHA for 70cb1f9
lib/net/ldap/connection.rb
@@ -146,9 +146,9 @@ def read(syntax = Net::LDAP::AsnSyntax)
146
#
147
# Returns the return value from writing to the connection, which in some
148
# cases is the Integer number of bytes written to the socket.
149
- def write(request, controls = nil)
+ def write(request, controls = nil, message_id = next_msgid)
150
instrument "write.net_ldap_connection" do |payload|
151
- packet = [next_msgid.to_ber, request, controls].compact.to_ber_sequence
+ packet = [message_id.to_ber, request, controls].compact.to_ber_sequence
152
payload[:content_length] = @conn.write(packet)
153
end
154
0 commit comments