File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1295,8 +1295,8 @@ def read(syntax = Net::LDAP::AsnSyntax)
1295
1295
# Returns the return value from writing to the connection, which in some
1296
1296
# cases is the Integer number of bytes written to the socket.
1297
1297
def write ( packet )
1298
- instrument "write.net_ldap_connection" , :packet => packet do
1299
- @conn . write ( packet )
1298
+ instrument "write.net_ldap_connection" do | payload |
1299
+ payload [ :content_length ] = @conn . write ( packet )
1300
1300
end
1301
1301
end
1302
1302
private :write
Original file line number Diff line number Diff line change 144
144
# a write event
145
145
payload , result = events . pop
146
146
payload . should have_key ( :result )
147
- payload . should have_key ( :packet )
147
+ payload . should have_key ( :content_length )
148
148
end
149
149
150
150
it "should publish a read.net_ldap_connection event" do
You can’t perform that action at this time.
0 commit comments