首页 \ 问答 \ OAuth,Twitter和Indentity - 我是谁?(OAuth, Twitter and Indentity - who am I?)

OAuth,Twitter和Indentity - 我是谁?(OAuth, Twitter and Indentity - who am I?)

一旦通过OAuth向Twitter进行身份验证,我没有看到一个很好的电话来获取您的用户名。 这应该如何工作? 我想撤回诸如Twitter用户名,名字,姓氏等等......基本配置文件。 OAuth握手应该给我用户名吗?


Once authenticated to Twitter via OAuth I did not see a good call to get your username. How is this supposed to work? I'd like to pull back things like Twitter username, firstname, lastname, etc... basic profile stuff. Should the OAuth handshake give me my username?


原文:https://stackoverflow.com/questions/6832732
更新时间:2022-08-06 20:08

最满意答案

这听起来有点像你的连接开始失败,然后自动重试。 如果重试速度足够快,TCP可以循环遍历整个端口范围,并且所有的端口都将处于TIME-WAIT状态(IIRC,这是该州所称的,这是因为我已经详细调试了TCP)。

首先要理解几件事情:

  1. 谁在发起连接,他们应该使用什么?
  2. 验证连接失败率,我倾向于使用Wireshark来处理这类事情。

然后,你必须寻找线索为什么连接失败。 可能是传出连接到服务器,服务器是否正常运行? 为什么服务器不接受连接 - 是负责接受连接死锁,阻塞某事还是退出连接的进程/线程? 始发者和服务器之间的网络是否正常工作?


It sounds kinda like your connections start failing and then are automatically retried. If the retries happen quickly enough TCP could cycle through the entire port range and all your ports will be in TIME-WAIT state (IIRC that's what the state's called, it's been a little while since I've been debugging TCP in detail).

A couple of things to understand first:

  1. Who is originating the connection(s) and what are they supposed to be used for?
  2. Verify the connection failure rates, I tend to use Wireshark for this sort of thing.

Then you have to look for clues as to why the connection is failing. Probably the outgoing connection is to a server, is the server up and running? Why wouldn't the server accept the connection - is the process/thread responsible for accepting the connection deadlocked, blocked on something, or has it exited? Is the network between the originator and the server working normally?

相关问答

更多
  • 如果ping是正常的,你可以试试iperf来测试TCP上的带宽(在这里阅读https://github.com/mininet/mininet/wiki/Bufferbloat#part-3-streaming-video---sketch-the-tcp- cwnd-and-buffer-occupancy )您还可以尝试在某些主机上的mininet上设置一个简单的http服务器,它将支持TCP。 mininet> h1 python -m SimpleHTTPServer 80 & mininet> h ...
  • 这里明确提到你可能不能在他们的沙盒环境中打开一个套接字。 现在HTTP也基于TCP / IP,并且你可以使用URL“获取”内容(在Python中,它是urllib和urllib2,对Go不太了解)。 但是原始的SOCK_STREAM连接? 没有。 问候, Yati Sagade It is clearly mentioned here that you may not open a socket from within their sandboxed environment. Now HTTP is als ...
  • 解决: "TCP","api.parse.com",443 Solved with : "TCP","api.parse.com",443
  • 您可以使用bind()函数来设置本地IP地址。 You can use the bind() function to set the local IP address.
  • 当您使用NetworkStream时,如果在尝试读取时关闭底层套接字,它将抛出IOException, 请参阅MSDN文档 。 所以你的代码非常好。 你只需要处理异常。 如果您直接读取套接字,则在套接字关闭时您将收到0。 When you use NetworkStream, it will throw an IOException if the underlying socket is closed while trying to read, see MSDN documentation . So you ...
  • 如果不考虑可扩展性,吞吐量和内存使用率,那么使用50个线程是一个合适的解决方案。 它具有简单的优点,简单是一件好事。 如果您希望能够扩展,或者您担心内存使用(N个线程意味着N个线程堆栈),那么您需要考虑使用NIO选择器的架构。 但是,最好的架构可能取决于以下内容: 每个客户站需要执行的工作量, 工作是否均匀分布(平均), 工作是否涉及其他I / O,访问共享数据结构等 聚合工作与单个处理器饱和的接近程度。 If scalability, throughput and memory usage are not ...
  • 这听起来有点像你的连接开始失败,然后自动重试。 如果重试速度足够快,TCP可以循环遍历整个端口范围,并且所有的端口都将处于TIME-WAIT状态(IIRC,这是该州所称的,这是因为我已经详细调试了TCP)。 首先要理解几件事情: 谁在发起连接,他们应该使用什么? 验证连接失败率,我倾向于使用Wireshark来处理这类事情。 然后,你必须寻找线索为什么连接失败。 可能是传出连接到服务器,服务器是否正常运行? 为什么服务器不接受连接 - 是负责接受连接死锁,阻塞某事还是退出连接的进程/线程? 始发者和服务器之 ...
  • 问题最有可能是这样的: sockaddrin.sin_port = port; 端口号必须是网络字节顺序 ,这与x86和x86_64机器中的本机字节顺序不同。 改成: sockaddrin.sin_port = htons(port); The problem most likely is this: sockaddrin.sin_port = port; The port number has to be in network byte order, which is different from ...
  • 来自Ans : ACK伴随着序列号。 RFC在握手时非常清楚: 1)A - > B SYN我的序列号是X. 2)A < - B确认您的序列号是X. 3)A < - B SYN我的序列号是Y. 4)A - > B确认你的序列号是Y. 步骤2和3组合在一个数据包中。 关于它的事情是步骤4也是用于移动TCP窗口的东西。 通过包含该步骤,您将在初始化过程中使用常规协议。 它基本上只是将传输窗口归零。 您不会被阻止与步骤4一起发送数据。 如果你愿意,你可以用你的第一个ACK发送数据,基本上是说“我收到的数据包最多为Y ...
  • 没有! 通过新的Socket(String,int)创建套接字会导致类似的解析 addr = InetAddress.getByName(hostname); 这是一个捷径 return InetAddress.getAllByName(host)[0]; 地址解析在Socket c-tor中执行。 如果必须重新连接(故障转移),请使用InetAddress.getAllByName(host)返回的结果,随机化(或使用循环法)并连接到必要的地址。 编辑:如果你需要连接一些可能的失败,你最好使用Sock ...

相关文章

更多

最新问答

更多
  • 您如何使用git diff文件,并将其应用于同一存储库的副本的本地分支?(How do you take a git diff file, and apply it to a local branch that is a copy of the same repository?)
  • 将长浮点值剪切为2个小数点并复制到字符数组(Cut Long Float Value to 2 decimal points and copy to Character Array)
  • OctoberCMS侧边栏不呈现(OctoberCMS Sidebar not rendering)
  • 页面加载后对象是否有资格进行垃圾回收?(Are objects eligible for garbage collection after the page loads?)
  • codeigniter中的语言不能按预期工作(language in codeigniter doesn' t work as expected)
  • 在计算机拍照在哪里进入
  • 使用cin.get()从c ++中的输入流中丢弃不需要的字符(Using cin.get() to discard unwanted characters from the input stream in c++)
  • No for循环将在for循环中运行。(No for loop will run inside for loop. Testing for primes)
  • 单页应用程序:页面重新加载(Single Page Application: page reload)
  • 在循环中选择具有相似模式的列名称(Selecting Column Name With Similar Pattern in a Loop)
  • System.StackOverflow错误(System.StackOverflow error)
  • KnockoutJS未在嵌套模板上应用beforeRemove和afterAdd(KnockoutJS not applying beforeRemove and afterAdd on nested templates)
  • 散列包括方法和/或嵌套属性(Hash include methods and/or nested attributes)
  • android - 如何避免使用Samsung RFS文件系统延迟/冻结?(android - how to avoid lag/freezes with Samsung RFS filesystem?)
  • TensorFlow:基于索引列表创建新张量(TensorFlow: Create a new tensor based on list of indices)
  • 企业安全培训的各项内容
  • 错误:RPC失败;(error: RPC failed; curl transfer closed with outstanding read data remaining)
  • C#类名中允许哪些字符?(What characters are allowed in C# class name?)
  • NumPy:将int64值存储在np.array中并使用dtype float64并将其转换回整数是否安全?(NumPy: Is it safe to store an int64 value in an np.array with dtype float64 and later convert it back to integer?)
  • 注销后如何隐藏导航portlet?(How to hide navigation portlet after logout?)
  • 将多个行和可变行移动到列(moving multiple and variable rows to columns)
  • 提交表单时忽略基础href,而不使用Javascript(ignore base href when submitting form, without using Javascript)
  • 对setOnInfoWindowClickListener的意图(Intent on setOnInfoWindowClickListener)
  • Angular $资源不会改变方法(Angular $resource doesn't change method)
  • 在Angular 5中不是一个函数(is not a function in Angular 5)
  • 如何配置Composite C1以将.m和桌面作为同一站点提供服务(How to configure Composite C1 to serve .m and desktop as the same site)
  • 不适用:悬停在悬停时:在元素之前[复制](Don't apply :hover when hovering on :before element [duplicate])
  • 常见的python rpc和cli接口(Common python rpc and cli interface)
  • Mysql DB单个字段匹配多个其他字段(Mysql DB single field matching to multiple other fields)
  • 产品页面上的Magento Up出售对齐问题(Magento Up sell alignment issue on the products page)